fix(components): [opover] effect dark mode title color (#9445)

This commit is contained in:
Xc
2022-08-25 09:19:33 +08:00
committed by GitHub
parent a4050516ed
commit 3dc6fbd427
2 changed files with 8 additions and 1 deletions

View File

@@ -68,7 +68,7 @@ popover/directive-usage
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------- | --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
| trigger | how the popover is triggered | string | click/focus/hover/contextmenu | click |
| title | popover title | string | — | — |
| effect | Tooltip theme, built-in theme: `dark` / `light` | string | string | dark |
| effect | Tooltip theme, built-in theme: `dark` / `light` | string | string | light |
| content | popover content, can be replaced with a default `slot` | string | — | — |
| width | popover width | string / number | — | Min width 150px |
| placement | popover placement | string | top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end | bottom |

View File

@@ -38,6 +38,13 @@
}
}
@include when(dark) {
@include set-css-var-value(
'popover-title-text-color',
var(#{getCssVarName('bg-color')})
);
}
&:focus:active,
&:focus {
outline-width: 0;