mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 20:19:39 +02:00
fix(shared-ui): improve toggle active state styling
- Add glow effect (box-shadow) when toggle is active - Add hover brightness effect for active state - Add proper dark mode support for active state 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
95bba8ef6e
commit
c1644039f3
1 changed files with 21 additions and 1 deletions
|
|
@ -173,8 +173,15 @@
|
|||
}
|
||||
|
||||
.settings-toggle__switch--on {
|
||||
background-color: hsl(var(--primary));
|
||||
background: hsl(var(--primary));
|
||||
border-color: hsl(var(--primary));
|
||||
box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
|
||||
}
|
||||
|
||||
:global(.dark) .settings-toggle__switch--on {
|
||||
background: hsl(var(--primary));
|
||||
border-color: hsl(var(--primary));
|
||||
box-shadow: 0 0 0 2px hsl(var(--primary) / 0.3);
|
||||
}
|
||||
|
||||
.settings-toggle__thumb {
|
||||
|
|
@ -195,6 +202,19 @@
|
|||
transform: translateX(1.25rem);
|
||||
}
|
||||
|
||||
.settings-toggle__switch:hover:not(:disabled) {
|
||||
border-color: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
:global(.dark) .settings-toggle__switch:hover:not(:disabled) {
|
||||
border-color: rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
.settings-toggle__switch--on:hover:not(:disabled) {
|
||||
filter: brightness(1.1);
|
||||
border-color: hsl(var(--primary));
|
||||
}
|
||||
|
||||
.settings-toggle__switch:focus-visible {
|
||||
outline: 2px solid hsl(var(--primary) / 0.4);
|
||||
outline-offset: 2px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue