Skip to content

Commit cc3c13d

Browse files
refactor(DoVsDont): fix do and dont sections
1 parent 34a1046 commit cc3c13d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

libs/ui-react/.storybook/components/DoVsDont/DoBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const DoBlockItem: React.FC<DoBlockItemProps> = ({
3535
)}
3636

3737
{/* Code Block */}
38-
<div className='[&_pre]:m-0! [&_pre]:rounded-xs! [&_pre]:border-2! [&_pre]:border-[#10B981]! [&_pre]:bg-[#F0FDF4]!'>
38+
<div className='[&>*:first-child_pre]:m-0! [&>*:first-child_pre]:rounded-xs! [&>*:first-child_pre]:border-2! [&>*:first-child_pre]:border-[#10B981]! [&>*:first-child_pre]:bg-[#F0FDF4]!'>
3939
{children}
4040
</div>
4141
</div>

libs/ui-react/.storybook/components/DoVsDont/DontBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const DontBlockItem: React.FC<DontBlockItemProps> = ({
3535
)}
3636

3737
{/* Code Block */}
38-
<div className='[&_pre]:m-0! [&_pre]:rounded-xs! [&_pre]:border-2! [&_pre]:border-[#EF4444]! [&_pre]:bg-[#FEF2F2]!'>
38+
<div className='[&>*:first-child_pre]:m-0! [&>*:first-child_pre]:rounded-xs! [&>*:first-child_pre]:border-2! [&>*:first-child_pre]:border-[#EF4444]! [&>*:first-child_pre]:bg-[#FEF2F2]!'>
3939
{children}
4040
</div>
4141
</div>

0 commit comments

Comments
 (0)