Skip to content

Commit

Permalink
fix(Message): 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 9502d8e commit aa6ae27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/plugins/components/message/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,31 +58,31 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:sm
'&.nui-message-rounded': {
'&.nui-message-rounded-sm': {
[`@apply ${config.rounded.sm}`]: {},

'.nui-message-icon-outer': {
[`@apply ${config.rounded.sm}`]: {},
},
},
//Rounded:md
'&.nui-message-smooth': {
'&.nui-message-rounded-md': {
[`@apply ${config.rounded.md}`]: {},

'.nui-message-icon-outer': {
[`@apply ${config.rounded.md}`]: {},
},
},
//Rounded:lg
'&.nui-message-curved': {
'&.nui-message-rounded-lg': {
[`@apply ${config.rounded.lg}`]: {},

'.nui-message-icon-outer': {
[`@apply ${config.rounded.lg}`]: {},
},
},
//Rounded:full
'&.nui-message-full': {
'&.nui-message-rounded-full': {
[`@apply ${config.rounded.full}`]: {},

'.nui-message-icon-outer': {
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/message/message.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { MessageVariant } from './message.types'

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

export const type = {
Expand Down

0 comments on commit aa6ae27

Please sign in to comment.