Skip to content

Commit

Permalink
fix(Input): fix color focus not showing on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Feb 17, 2024
1 parent c3fed6c commit 3c4184f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/plugins/components/input/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,6 @@ export default plugin(({ addComponents, theme }) => {
[`@apply transition-${config.input.action.transition.property} duration-${config.input.action.transition.duration}`]:
{},
},
//Focus:color
'&.nui-input-focus': {
'.nui-input': {
[`@apply focus:border-${config.input.focus.border.color.light} dark:focus:border-${config.input.focus.border.color.dark}`]:
{},
},
},
//Rounded:sm
'&.nui-input-rounded': {
'.nui-input': {
Expand Down Expand Up @@ -285,6 +278,17 @@ export default plugin(({ addComponents, theme }) => {
{},
},
},
//Focus:color
'&.nui-input-focus': {
'.nui-input': {
//Focus
[`@apply focus:!border-${config.input.focus.border.color.light} dark:focus:!border-${config.input.focus.border.color.dark}`]:
{},
//Force focus
[`@apply focus:hover:!border-${config.input.focus.border.color.light} dark:focus:hover:!border-${config.input.focus.border.color.dark}`]:
{},
},
},
//Input:not loading
'&:not(.nui-input-loading)': {
'.nui-input:placeholder-shown ~ .nui-label-float': {
Expand Down

0 comments on commit 3c4184f

Please sign in to comment.