forked from farhoodlabs/paperclip
Add missing data-slot="toggle" to Routines toggle buttons
The initial mobile toggle fix (afc3d7ec) missed 2 toggle switches in RoutineDetail.tsx and Routines.tsx. Without the attribute, these toggles would still inflate to 44px on touch devices via the @media (pointer: coarse) rule. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -580,6 +580,7 @@ export function Routines() {
|
||||
<button
|
||||
type="button"
|
||||
role="switch"
|
||||
data-slot="toggle"
|
||||
aria-checked={enabled}
|
||||
aria-label={enabled ? `Disable ${routine.title}` : `Enable ${routine.title}`}
|
||||
disabled={isStatusPending || isArchived}
|
||||
|
||||
Reference in New Issue
Block a user