Skip to content

Commit

Permalink
feat(menu-item): enhance component's interactive states (#10933)
Browse files Browse the repository at this point in the history
**Related Issue:**
[#10001](#10001)

## Summary

This:
- Removes the background color on `:hover` and `:focus`.
- Adds `border.2` `2px` bottom border on `:hover`.
- Increases `:active` state `bottom border` to `4px` on `:focus`.
  • Loading branch information
aPreciado88 authored Dec 3, 2024
1 parent 7c2a8aa commit 581cea2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@
border-block-end: theme("spacing[0.5]") solid transparent;
padding-block-start: theme("spacing[0.5]");
&:hover {
@apply bg-foreground-2 text-color-2;
@apply text-color-2 border-b-color-2;
}
&:focus {
@apply bg-foreground-2 text-color-2 focus-inset;
@apply text-color-2 focus-inset border-b-4;
padding-block-start: theme("spacing.1");
border-block-end-width: theme("spacing.1");
}
&:active {
@apply bg-foreground-3 text-color-1;
Expand Down

0 comments on commit 581cea2

Please sign in to comment.