Skip to content

Commit

Permalink
fix(Dialog): title to have correct sentiment (#3928)
Browse files Browse the repository at this point in the history
* fix(Dialog): title to have correct sentiment

* fix: font and text
  • Loading branch information
matthprost authored Jul 3, 2024
1 parent b1e5948 commit 7dee114
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-schools-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ultraviolet/ui": patch
---

Fix `<Dialog />` title to have the correct neutral color
Binary file not shown.
16 changes: 3 additions & 13 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import JetBrains from './assets/fonts/jetbrains/JetBrainsMono-Regular.woff2'
import InterSemiBoldWoff2 from './assets/fonts/inter/Inter-SemiBold.woff2'
import InterMediumWoff2 from './assets/fonts/inter/Inter-Medium.woff2'
import InterRegularWoff2 from './assets/fonts/inter/Inter-Regular.woff2'
import SpaceGroteskMediumWoff2 from './assets/fonts/space-grotesk/SpaceGrotesk-Medium.woff2'
import SpaceGroteskRegularWoff2 from './assets/fonts/space-grotesk/SpaceGrotesk-Regular.woff2'
import SpaceGrotesk from './assets/fonts/space-grotesk/SpaceGrotesk.woff2'
import { withThemeFromJSXProvider } from '@storybook/addon-themes'

if (isChromatic()) seedrandom('manual-seed', { global: true })
Expand Down Expand Up @@ -122,19 +121,10 @@ export const globalStyles = css`
font-weight: 400;
font-display: swap;
}
@font-face {
@font-face {
font-family: 'Space Grotesk';
font-style: normal;
src: url(${SpaceGroteskMediumWoff2}) format('woff2');
font-weight: 500;
font-display: swap;
}
@font-face {
font-family: 'Space Grotesk';
font-style: normal;
src: url(${SpaceGroteskRegularWoff2}) format('woff2');
font-weight: 400;
font-display: swap;
src: url(${SpaceGrotesk}) format('woff2');
}
`

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You will also need to import fonts in your project by adding:
rel="stylesheet"
/>
<link
href="https://fonts.cdnfonts.com/css/space-grotesk?styles=24816,24815"
href="https://fonts.cdnfonts.com/css/space-grotesk?styles=24816,24815,24817"
rel="stylesheet"
/>
```
Expand Down
6 changes: 5 additions & 1 deletion packages/ui/src/components/Dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ export const BaseDialog = ({
: 'check'
}
/>
<StyledTextTitle as="h2" variant="headingSmallStronger">
<StyledTextTitle
as="h2"
variant="headingSmallStronger"
sentiment="neutral"
>
{title}
</StyledTextTitle>
</>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Dialog/subComponents/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type DialogTextProps = {
}

export const DialogText = ({ children }: DialogTextProps) => (
<Text as="p" variant="body">
<Text as="p" variant="body" sentiment="neutral">
{children}
</Text>
)

0 comments on commit 7dee114

Please sign in to comment.