Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion packages/boxel-ui/addon/src/components/switch/index.gts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ export default class Switch extends Component<SwitchSiganture> {

width: var(--boxel-switch-width, 2.125rem);
height: var(--boxel-switch-height, 1.25rem);
border-radius: 1.25rem;
/* full pill regardless of rendered size: a fixed radius tuned to
the natural height squares off when a consumer sizes the switch
taller */
border-radius: 999px;
padding: 1px;
display: inline-flex;
align-items: center;
Expand All @@ -60,6 +63,9 @@ export default class Switch extends Component<SwitchSiganture> {
}

input[type='checkbox'] {
/* -webkit- prefix is required for iOS Safari, which otherwise
keeps the native checkbox and ignores our thumb styling */
-webkit-appearance: none;
appearance: none;
}

Expand Down
Loading