Skip to content

Commit c40e446

Browse files
committed
Replacing gap values with design tokens
1 parent a4424b9 commit c40e446

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

apps/website/screens/common/QuickNavContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const getSubSectionsLinks = (sections: SectionType[]) => {
3131

3232
const DxcQuickNavContainer = ({ title = "On this page", sections, startHeadingLevel = 1 }: QuickNavContainerTypes): JSX.Element => (
3333
<MainContainer>
34-
<DxcGrid gap="3rem" templateColumns={["minmax(0, 1fr)"]}>
34+
<DxcGrid gap="var(--spacing-gap-xl)" templateColumns={["minmax(0, 1fr)"]}>
3535
{sections.map((section) => (
3636
<Section
3737
key={`section-${section.title}`}

apps/website/screens/components/dialog/code/examples/withContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const code = `() => {
2222
<DxcInset space="1.5rem">
2323
<DxcGrid gap="2rem">
2424
<DxcHeading level={2} text="Delivery address" weight="normal" />
25-
<DxcGrid templateColumns={["1fr", "1fr"]} templateColumns={["1fr", "1fr"]} gap="1rem">
25+
<DxcGrid templateColumns={["1fr", "1fr"]} templateColumns={["1fr", "1fr"]} gap="var(--spacing-gap-ml)">
2626
<DxcTextInput label="Street" size="fillParent" />
2727
<DxcTextInput label="City" size="fillParent" />
2828
<DxcGrid.Item column={{ start: 1, end: 3 }}>

apps/website/screens/components/grid/code/examples/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const code = `() => {
55
return (
66
<DxcInset space="2rem">
77
<DxcGrid
8-
gap={{ rowGap: "0.5rem", columnGap: "1rem" }}
8+
gap={{ rowGap: "var(--spacing-gap-s)", columnGap: "var(--spacing-gap-ml)" }}
99
templateColumns={["repeat(4, 1fr)"]}
1010
templateRows={["40px", "200px", "60px"]}
1111
templateAreas={[
@@ -17,7 +17,7 @@ const code = `() => {
1717
<DxcGrid.Item areaName="header" as="header">
1818
<Placeholder height="100%" />
1919
</DxcGrid.Item>
20-
<DxcGrid templateColumns={["repeat(4, 1fr)"]} gap="0.25rem" areaName="main" as="main">
20+
<DxcGrid templateColumns={["repeat(4, 1fr)"]} gap="var(--spacing-gap-xs)" areaName="main" as="main">
2121
<Placeholder />
2222
<Placeholder />
2323
<Placeholder />

0 commit comments

Comments
 (0)