Skip to content

Commit

Permalink
fix(Prose): 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 b105b75 commit 1398e3e
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/prose/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ export default plugin(({ addComponents, theme }) => {
[`@apply prose-td:border-t prose-td:border-${config.table.border.light} dark:prose-td:border-${config.table.border.dark}`]:
{},
//Rounded:none
'&.nui-prose-straight': {
'&.nui-prose-rounded-none': {
'@apply prose-img:rounded-none prose-pre:rounded-none prose-table:rounded-none':
{},
},
//Rounded:sm
'&.nui-prose-rounded': {
'&.nui-prose-rounded-sm': {
[`@apply prose-img:${config.rounded.sm} prose-pre:${config.rounded.sm} prose-table:${config.rounded.sm}`]:
{},
},
//Rounded:md
'&.nui-prose-smooth': {
'&.nui-prose-rounded-md': {
[`@apply prose-img:${config.rounded.md} prose-pre:${config.rounded.md} prose-table:${config.rounded.md}`]:
{},
},
//Rounded:lg
'&.nui-prose-curved': {
'&.nui-prose-rounded-lg': {
[`@apply prose-img:${config.rounded.lg} prose-pre:${config.rounded.lg} prose-table:${config.rounded.lg}`]:
{},
},
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/prose/prose.variants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { ProseVariant } from './prose.types'

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

0 comments on commit 1398e3e

Please sign in to comment.