mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-22 16:51:28 +02:00
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:
1 parent
42c8d9b660
commit
e61f00d4c1
2 files changed
+2
No files matched your search
@@ -647,6 +647,7 @@ export function RoutineDetail() {
|
||||
<button
|
||||
type="button"
|
||||
role="switch"
|
||||
data-slot="toggle"
|
||||
aria-checked={automationEnabled}
|
||||
aria-label={automationEnabled ? "Pause automatic triggers" : "Enable automatic triggers"}
|
||||
disabled={automationToggleDisabled}
|
||||
|
||||
@@ -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