Skip to content

Commit

Permalink
fix(Toast): 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 766ed18 commit 64d845a
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/toast/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,15 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:sm
'&.nui-toast-rounded': {
'&.nui-toast-rounded-sm': {
[`@apply rounded-${config.rounded.sm}`]: {},
},
//Rounded:smooth
'&.nui-toast-smooth': {
'&.nui-toast-rounded-md': {
[`@apply rounded-${config.rounded.md}`]: {},
},
//Rounded:curved
'&.nui-toast-curved': {
'&.nui-toast-rounded-lg': {
[`@apply rounded-${config.rounded.lg}`]: {},
},
//Shadow:borderless
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/components/toast/toast.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { ToastVariant } from './toast.types'

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

export const color = {
Expand Down

0 comments on commit 64d845a

Please sign in to comment.