Skip to content

Commit 0242245

Browse files
authored
Style: Add unordered and ordered list styling (#5957)
* feat: add story and initial css props * feat: add font style property * feat: ordered list story * feat: change ordered lists text for a better visualization * fix: style formatting and storybook list story * fix: storybook duplicated story * fix: storybook disposition * style: fix color identation * fix: remove unecessary story style * fix: remove return statement * feat: re-add container * feat: remove listContainerStyle * fix: add required styles * feat: add font style property * fix: rebase branch
1 parent 56b6277 commit 0242245

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import type { Meta as MetaObj, StoryObj } from '@storybook/react';
2+
3+
export const OrderedLists: StoryObj = {
4+
render: () => (
5+
<div>
6+
<ol>
7+
<li>Ordered lists</li>
8+
<li>Like this</li>
9+
<li>with numbers</li>
10+
</ol>
11+
</div>
12+
),
13+
};
14+
15+
export const UnorderedLists: StoryObj = {
16+
render: () => (
17+
<div>
18+
<ul>
19+
<li>Unordered lists</li>
20+
<li>those without</li>
21+
<li>numbers</li>
22+
</ul>
23+
</div>
24+
),
25+
};
26+
27+
export default { title: 'Design System/Lists' } as MetaObj;

styles/new/base.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,19 @@ a:visited {
2525
dark:text-green-300;
2626
}
2727
}
28+
29+
ul {
30+
@apply list-disc
31+
px-5
32+
leading-6
33+
text-neutral-900
34+
dark:text-white;
35+
}
36+
37+
ol {
38+
@apply list-decimal
39+
px-5
40+
leading-6
41+
text-neutral-900
42+
dark:text-white;
43+
}

0 commit comments

Comments
 (0)