Skip to content

Commit

Permalink
fix(web-components): updating inner border of focused toggle button
Browse files Browse the repository at this point in the history
updating inner border of focused toggle button
  • Loading branch information
MI6-286 committed Feb 21, 2025
1 parent 1c8bdd9 commit 5551953
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@
}

:host(.ic-toggle-button-checked) ::part(button):focus {
box-shadow: inset 0 0 0 var(--ic-space-xxxs) var(--ic-architectural-white),
box-shadow: inset 0 0 0 var(--ic-space-xxxs)
var(--ic-toggle-button-selected-border-focus),
var(--ic-border-focus);
}

Expand Down
9 changes: 9 additions & 0 deletions packages/web-components/src/global/color-mode.css
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,9 @@ ic-theme,
);
--ic-toggle-button-selected-text-disabled: var(--ic-color-brand-text);
--ic-toggle-button-selected-icon-disabled: var(--ic-color-icon-brand);
--ic-toggle-button-selected-border-focus: var(
--ic-color-border-neutral-white
);
--ic-toggle-button-unselected-border-monochrome: var(
--ic-color-border-neutral-black
);
Expand Down Expand Up @@ -2630,6 +2633,9 @@ ic-theme,
--ic-color-text-tertiary-light
);
--ic-toggle-button-selected-icon-disabled: var(--ic-color-icon-disabled);
--ic-toggle-button-selected-border-focus: var(
--ic-color-border-neutral-black
);
--ic-toggle-button-unselected-border-monochrome: var(
--ic-color-border-neutral-white
);
Expand Down Expand Up @@ -3956,6 +3962,9 @@ ic-theme,
--ic-color-text-tertiary-light
);
--ic-toggle-button-selected-icon-disabled: var(--ic-color-icon-disabled);
--ic-toggle-button-selected-border-focus: var(
--ic-color-border-neutral-black
);
--ic-toggle-button-unselected-border-monochrome: var(
--ic-color-border-neutral-white
);
Expand Down

0 comments on commit 5551953

Please sign in to comment.