Skip to content

Commit c5190be

Browse files
committed
fix: use correct font
1 parent 46fbb83 commit c5190be

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

packages/ui-react/.storybook/style.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
html {
66
/* Use a bold color to clearly show cases where we've forgotten to set text color. */
77
color: #ff00ff;
8+
9+
@apply font-sans;
810
}
911
}

packages/ui-react/src/components/menu/menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ const Item = ({
169169
{icon && <span className="flex items-center justify-center">{icon}</span>}
170170

171171
{/* This 2px padding is there to fix some issues with the font not being correctly centered. */}
172-
<span className="col-start-2 pb-[2px]">{children}</span>
172+
<span className="col-start-2 pt-[2px]">{children}</span>
173173

174174
<ChevronRightIcon className="size-4 hidden group-aria-[haspopup]/item:block" />
175175
</MenuPrimitive.Item>

packages/ui-react/src/overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ To use the provided styles yourself, setup your Tailwind CSS like this:
2424
// Import the Scouterna UI theme
2525
@import "@scouterna/ui-react/theme.css";
2626

27-
// Set base text color to make your own text coherent with the theme
27+
// Set base font-family and text color to make your own text coherent with the theme
2828
@layer base {
2929
html {
30-
@apply text-gray-dark;
30+
@apply font-sans text-gray-dark;
3131
}
3232
}
3333
```

0 commit comments

Comments
 (0)