Skip to content

Commit 8e538f1

Browse files
committed
Align remote toggle with app theme
1 parent f57e51f commit 8e538f1

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/pages/Competition/Remote/RemoteAutoAdvanceToggle.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ export function RemoteAutoAdvanceToggle({
1919
aria-label="Auto-advance"
2020
disabled={disabled}
2121
className={classNames(
22-
'relative h-6 w-12 rounded-full shadow-sm hover-transition disabled:cursor-not-allowed disabled:opacity-50',
23-
checked ? 'bg-blue-300' : 'bg-gray-300 dark:bg-gray-600',
22+
'relative inline-flex h-7 w-12 rounded-full border p-0.5 shadow-sm hover-transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 disabled:cursor-not-allowed disabled:opacity-50',
23+
checked
24+
? 'border-primary bg-primary hover:bg-primary-strong'
25+
: 'border-tertiary bg-tertiary hover:bg-tertiary-strong',
2426
)}
2527
onClick={onToggle}>
2628
<span
2729
className={classNames(
28-
'absolute left-0 top-1/2 h-7 w-7 -translate-y-1/2 rounded-full bg-blue-600 shadow-md transition-transform',
29-
checked ? 'translate-x-6' : 'translate-x-0 bg-gray-50 dark:bg-gray-300',
30+
'h-6 w-6 rounded-full border border-tertiary-weak bg-panel shadow-sm transition-transform',
31+
checked ? 'translate-x-5' : 'translate-x-0',
3032
)}
3133
/>
3234
</button>

0 commit comments

Comments
 (0)