Skip to content

Commit a9304fc

Browse files
committed
chore(ui): account for nested code elements
1 parent c086c54 commit a9304fc

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/ui-hydration-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@node-core/ui-components': patch
3+
---
4+
5+
Account for a possible wrapper between a code boxes `pre` and `code`.

packages/ui-components/src/Common/BaseCodeBox/index.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
min-w-0
1515
p-4;
1616

17-
& > code {
17+
code {
1818
@apply font-ibm-plex-mono
1919
font-regular
2020
scrollbar-thin

0 commit comments

Comments
 (0)