Skip to content

Commit 625dfcf

Browse files
dylanatsmithCopilot
andcommitted
Remove explanatory comments from ToggleSwitch knob styles
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ed28da8 commit 625dfcf

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

app/components/primer/alpha/toggle_switch.pcss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
}
88

99
.ToggleSwitch {
10-
/* Knob clears the track's border on every side */
1110
--toggleSwitch-knob-inset: var(--borderWidth-thin);
1211
--toggleSwitch-knob-offset: calc(2 * var(--toggleSwitch-knob-inset));
1312

@@ -158,14 +157,12 @@
158157

159158
.ToggleSwitch-knob {
160159
position: absolute;
161-
/* clear the track border on the block edges + inline-start; inline-end stays auto (width drives it) */
162160
inset-block: var(--toggleSwitch-knob-inset);
163161
inset-inline-start: var(--toggleSwitch-knob-inset);
164162
z-index: 1;
165163
width: 50%;
166164
background-color: var(--controlKnob-bgColor-rest);
167165
border: var(--borderWidth-thin) solid var(--controlKnob-borderColor-rest);
168-
/* Concentric radius: subtract the track border on both sides */
169166
/* stylelint-disable-next-line primer/borders */
170167
border-radius: calc(var(--borderRadius-medium) - var(--toggleSwitch-knob-offset));
171168
transition-timing-function: cubic-bezier(0.5, 1, 0.89, 1);

0 commit comments

Comments
 (0)