Skip to content

Commit

Permalink
fix(MessageText): 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 aa6ae27 commit 0ada7ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/plugins/components/message-text/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ export default plugin(({ addComponents, theme }) => {
{},
},
//Rounded:sm
'&.nui-message-rounded': {
'&.nui-message-rounded-sm': {
[`@apply ${config.rounded.default}`]: {},
},
//Rounded:md
'&.nui-message-smooth': {
'&.nui-message-rounded-md': {
[`@apply ${config.rounded.smooth}`]: {},
},
//Rounded:lg
'&.nui-message-curved': {
'&.nui-message-rounded-lg': {
[`@apply ${config.rounded.curved}`]: {},
},
//Contrast:low
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/components/message-text/message-text.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { MessageTextVariant } from './message-text.types'

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

export const color = {
Expand Down

0 comments on commit 0ada7ca

Please sign in to comment.