Skip to content

Commit eec9167

Browse files
committed
revert list global styles removal
1 parent a63aad2 commit eec9167

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

src/components/BaseStories/Link.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import * as React from "react"
2-
import { Center, ListItem, Stack, Text, UnorderedList } from "@chakra-ui/react"
2+
import { Center, Stack, Text } from "@chakra-ui/react"
33
import { Meta, StoryObj } from "@storybook/react"
44

55
import Link from "../Link"
6+
import { ListItem, UnorderedList } from "../ui/list"
67

78
const meta = {
89
title: "Molecules / Navigation / Links",

src/styles/global.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,34 @@
191191
samp {
192192
@apply font-monospace text-base leading-base;
193193
}
194+
195+
/* TODO: remove these global styles when the list component migration is complete */
196+
ul,
197+
ol {
198+
margin: 0px 0px 1.45rem 1.45rem;
199+
padding: 0;
200+
201+
& li {
202+
padding-inline-start: 0;
203+
}
204+
}
205+
206+
li {
207+
margin-bottom: calc(1.45rem / 2);
208+
209+
& > ol,
210+
& > ul {
211+
margin-inline-start: 1.45rem;
212+
margin-block: calc(1.45rem / 2);
213+
margin-top: calc(1.45rem / 2);
214+
}
215+
216+
& * {
217+
@apply last:mb-0;
218+
}
219+
220+
& > p {
221+
margin-bottom: calc(1.45rem / 2);
222+
}
223+
}
194224
}

0 commit comments

Comments
 (0)