Skip to content

Commit

Permalink
Use JS tokens for styles in Dialog stories
Browse files Browse the repository at this point in the history
  • Loading branch information
ty2k committed Sep 18, 2024
1 parent a02194e commit 66426e9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/react-components/src/stories/Dialog.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import * as tokens from "@bcgov/design-tokens/js";

import {
Button,
Expand Down Expand Up @@ -46,7 +47,7 @@ export const DialogTemplate: Story = {
args: {
children: [
<div>
<h2 style={{ font: "var(--typography-bold-h2)", textAlign: "center" }}>
<h2 style={{ font: tokens.typographyBoldH2, textAlign: "center" }}>
Dialog title
</h2>
</div>,
Expand All @@ -65,10 +66,10 @@ export const DialogTemplate: Story = {
export const DialogWithForm: Story = {
args: {
children: [
<div style={{ padding: "var(--layout-padding-medium" }}>
<div style={{ padding: tokens.layoutPaddingMedium }}>
<span
style={{
font: "var(--typography-bold-h5)",
font: tokens.typographyBoldH5,
}}
>
This dialog contains a form
Expand All @@ -77,7 +78,7 @@ export const DialogWithForm: Story = {
style={{
display: "flex",
flexDirection: "column",
gap: "var(--layout-margin-small)",
gap: tokens.layoutMarginSmall,
}}
>
<TextField isRequired label="Name" />
Expand Down

0 comments on commit 66426e9

Please sign in to comment.