From 9fbbee451ce0492b897ec882ac8c0a74b94ddbd5 Mon Sep 17 00:00:00 2001 From: Sacha STAFYNIAK Date: Tue, 8 Aug 2023 14:55:44 +0200 Subject: [PATCH] fix(textarea): color focus class --- src/plugins/components/textarea.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/components/textarea.ts b/src/plugins/components/textarea.ts index 6616706..8578757 100644 --- a/src/plugins/components/textarea.ts +++ b/src/plugins/components/textarea.ts @@ -150,6 +150,11 @@ export default plugin.withOptions( [`@apply !text-${config.textarea.focusVisible.labelFloat.text} dark:!text-${config.textarea.focusVisible.labelFloat.textDark}`]: {}, }, + + [`&.${prefix}-textarea-focus`]: { + [`@apply focus:!border-${config.textarea.focus.border} transition-colors duration-${config.textarea.focus.duration}`]: + {}, + }, }, [`.${prefix}-textarea-error-text`]: { [`@apply text-${config.errorText.text} mt-1 block font-${config.errorText.font} text-${config.errorText.textSize} font-${config.errorText.fontWeight} leading-none`]: @@ -250,10 +255,6 @@ export default plugin.withOptions( {}, }, }, - [`&.${prefix}-textarea-focus`]: { - [`@apply focus-visible:!border-${config.textarea.focus.border} transition-colors duration-${config.textarea.focus.duration}`]: - {}, - }, [`&.${prefix}-textarea-no-resize`]: { [`.${prefix}-textarea`]: { [`@apply resize-none`]: {},