Skip to content

Commit c88726e

Browse files
authored
fix: forced color mode for side-nav-item base styles (#10118)
1 parent 07f83bc commit c88726e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/side-nav/src/styles/vaadin-side-nav-item-base-styles.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,21 @@ const sideNavItem = css`
102102
}
103103
104104
@media (forced-colors: active) {
105+
[part='content'] {
106+
border: 1px solid Canvas !important;
107+
}
108+
105109
:host([current]) [part='content'] {
106-
color: Highlight;
110+
color: Highlight !important;
111+
border-color: Highlight !important;
107112
}
108113
109114
:host([disabled]) [part='content'] {
110-
--vaadin-side-nav-item-color: GrayText;
115+
--vaadin-side-nav-item-color: GrayText !important;
111116
}
112117
113118
:host([disabled]) [part='toggle-button']::before {
114-
background: GrayText;
119+
background: GrayText !important;
115120
}
116121
}
117122
`;

0 commit comments

Comments
 (0)