Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/violet-webs-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sanity/ui': patch
---

fix: apply --font-mono to code elements in reset
12 changes: 12 additions & 0 deletions apps/storybook/src/stories/Text.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,15 @@ export const Truncate: Story = {
)
},
}

export const NestedElements: Story = {
render: (props) => {
return (
<Text {...props}>
Here is a Text component with some nested semantic elements:{' '}
<strong>the strong element,</strong> <em>the emphasized element</em> and{' '}
<code>the code element.</code>
</Text>
)
},
}
4 changes: 4 additions & 0 deletions packages/ui/src/css/global/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
border-spacing: 0;
}

:where(code) {
font-family: var(--mono);
}

/* Enforce no animations for users that prefer reduced motion*/
@media (prefers-reduced-motion: reduce) {
*,
Expand Down
Loading