Skip to content

Commit

Permalink
fix: refactor listbox button focus styles
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 19, 2023
1 parent d723054 commit 8715443
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/plugins/components/listbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,14 +551,15 @@ export default plugin.withOptions(
[`@apply start-3 -ms-3 -mt-7 text-${config.icon.disabled.label.float.sm.font.size} text-transparent`]:
{},
},
[`.${prefix}listbox-button:focus-visible ~ .${prefix}label-float, .${prefix}listbox-button:focus ~ .${prefix}label-float`]:
[`.${prefix}listbox-button:focus-within ~ .${prefix}label-float, .${prefix}listbox-button:focus ~ .${prefix}label-float`]:
{
[`@apply !-ms-3 !-mt-7 !text-${config.label.float.font.color}`]:
{},
},
[`.${prefix}listbox-button ~ .${prefix}label-float`]: {
[`@apply ms-0 mt-0`]: {},
},
[`.${prefix}listbox-button:not(:focus-within) ~ .${prefix}label-float, .${prefix}listbox-button:not(:focus) ~ .${prefix}label-float`]:
{
[`@apply ms-0 mt-0`]: {},
},
},
//With:icon && Size:sm && Label:float
[`&.${prefix}listbox-label-float.${prefix}has-icon.${prefix}listbox-sm`]:
Expand Down

0 comments on commit 8715443

Please sign in to comment.