Skip to content

Commit

Permalink
Fix: Toggle hover shadow styling (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabricevladimir authored Jan 23, 2024
1 parent bb49d33 commit 593e3fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- Minimum `tailwindcss` version required
- Fix disabled input style on Firefox
- Max Length on inputs is restyle, only shows if no alert
- Max Length on inputs is restyled and only shows if no alert
- Fix `Toggle` component shadow styling

### Added

Expand Down
2 changes: 1 addition & 1 deletion src/components/toggles/toggle/toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const Toggle: React.FC<IToggleProps> = (props) => {
const toggleClasses = classNames(
'flex h-10 items-center rounded-[40px] border border-neutral-100 px-4', // Default
'focus:outline-none focus-visible:ring focus-visible:ring-primary focus-visible:ring-offset', // Focus state
'hover:enabled:border-neutral-200 hover:enabled:shadow-primary-md', // Hover state
'hover:enabled:border-neutral-200 hover:enabled:shadow-neutral', // Hover state
'data-[state=off]:enabled:bg-neutral-0 data-[state=off]:enabled:text-neutral-600', // Default state
'data-[state=on]:enabled:bg-neutral-100 data-[state=on]:enabled:text-neutral-800', // Active state
'disabled:bg-neutral-100 disabled:text-neutral-300', // Disabled state
Expand Down

0 comments on commit 593e3fa

Please sign in to comment.