You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Readonly slider vertical alignment broken for default and large size variants #5
In readonly state, .switch gains a 1px dashed border with box-sizing: border-box, which reduces the inner track height by 2px (1px top + 1px bottom). The :host([readonly]) .slider rule keeps top: 1px, meaning the slider knob is not vertically centred for the default and large sizes.
Root Cause
The correct top offset in readonly state must account for the 1px border:
Identified during review of PR #4 (#4) — specifically the discussion at #4 (comment).
The top: 2px fix attempted in PR #4 was reverted because it exposed the missing per-size overrides for large. This issue tracks the complete fix covering all size variants.
changed the title [-]fix: readonly slider vertical alignment regression for size variants (small, large, longswipe)[/-][+]fix: readonly slider vertical alignment broken for default and large size variants[/+]on May 13, 2026
changed the title [-]fix: readonly slider vertical alignment broken for default and large size variants[/-][+]Readonly slider vertical alignment broken for default and large size variants[/+]on May 13, 2026
Activity
[-]fix: readonly slider vertical alignment regression for size variants (small, large, longswipe)[/-][+]fix: readonly slider vertical alignment broken for default and large size variants[/+][-]fix: readonly slider vertical alignment broken for default and large size variants[/-][+]Readonly slider vertical alignment broken for default and large size variants[/+]