Skip to content

Commit

Permalink
fix(Textarea): rename rounded classes to match props
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Feb 21, 2024
1 parent 86dc59f commit 766ed18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/plugins/components/textarea/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:sm
'&.nui-textarea-rounded': {
'&.nui-textarea-rounded-sm': {
'.nui-textarea': {
[`@apply rounded-${config.rounded.sm}`]: {},
},
Expand All @@ -94,7 +94,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:md
'&.nui-textarea-smooth': {
'&.nui-textarea-rounded-md': {
'.nui-textarea': {
[`@apply rounded-${config.rounded.md}`]: {},
},
Expand All @@ -103,7 +103,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:lg
'&.nui-textarea-curved': {
'&.nui-textarea-rounded-lg': {
'.nui-textarea': {
[`@apply rounded-${config.rounded.lg}`]: {},
},
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/textarea/textarea.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { TextareaVariant } from './textarea.types'

export const rounded = {
none: '',
sm: 'nui-textarea-rounded',
md: 'nui-textarea-smooth',
lg: 'nui-textarea-curved',
full: 'nui-textarea-full',
sm: 'nui-textarea-rounded-sm',
md: 'nui-textarea-rounded-md',
lg: 'nui-textarea-rounded-lg',
full: 'nui-textarea-rounded-lg',
} as const satisfies TextareaVariant<'rounded'>

export const size = {
Expand Down

0 comments on commit 766ed18

Please sign in to comment.