Skip to content

Commit 19ebdfa

Browse files
committed
feat(switch): use inset border increase and update outline offset
1 parent a4ac9f8 commit 19ebdfa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/pharos/src/components/switch/pharos-switch.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
&:hover {
2828
border-color: var(--pharos-color-marble-gray-30);
29-
box-shadow: 0 0 0 1px var(--pharos-color-marble-gray-30);
29+
box-shadow: inset 0 0 0 1px var(--pharos-color-marble-gray-30);
3030
}
3131

3232
&::before {
@@ -55,7 +55,7 @@
5555
border-color: var(--pharos-color-green-base);
5656

5757
&:hover {
58-
box-shadow: 0 0 0 1px var(--pharos-color-green-base);
58+
box-shadow: inset 0 0 0 1px var(--pharos-color-green-base);
5959
}
6060

6161
&::before {
@@ -83,9 +83,9 @@
8383
#switch-element:focus-visible {
8484
+ .input-wrapper .switch__control {
8585
outline: 2px solid var(--pharos-color-focus);
86-
outline-offset: 3px;
86+
outline-offset: 2px;
8787
border-color: var(--pharos-color-marble-gray-30);
88-
box-shadow: 0 0 0 1px var(--pharos-color-marble-gray-30);
88+
box-shadow: inset 0 0 0 1px var(--pharos-color-marble-gray-30);
8989
}
9090
}
9191

@@ -116,8 +116,8 @@
116116
#switch-element:focus-visible:checked {
117117
+ .input-wrapper .switch__control {
118118
outline: 2px solid var(--pharos-color-focus);
119-
outline-offset: 3px;
119+
outline-offset: 2px;
120120
border-color: var(--pharos-color-green-base);
121-
box-shadow: 0 0 0 1px var(--pharos-color-green-base);
121+
box-shadow: inset 0 0 0 1px var(--pharos-color-green-base);
122122
}
123123
}

0 commit comments

Comments
 (0)