Skip to content

Commit c0606c0

Browse files
authored
fix(uikit): simplify hover styles in theme (#641)
* fix(uikit): simplify hover styles in theme Removed unnecessary nested styles for hover state in the theme, streamlining the CSS for better readability and maintainability. * Create wild-eggs-act.md
1 parent 8f47c5b commit c0606c0

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.changeset/wild-eggs-act.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tidbcloud/uikit": patch
3+
---
4+
5+
fix(uikit): simplify hover styles in theme

packages/uikit/src/theme/theme.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,9 +1418,7 @@ const theme = createTheme({
14181418
color: themeColor(theme, 'carbon', 8)
14191419
},
14201420
'&:hover': {
1421-
[u.light]: {
1422-
backgroundColor: themeColor(theme, 'carbon', 2)
1423-
}
1421+
backgroundColor: themeColor(theme, 'carbon', 2)
14241422
},
14251423
'&[data-active]': {
14261424
color: themeColor(theme, 'carbon', 9),

0 commit comments

Comments
 (0)