Skip to content

Commit d972212

Browse files
authored
docs(button): stories with utrecht icon (#803)
closes: #782
1 parent 9ab8449 commit d972212

File tree

5 files changed

+49
-0
lines changed

5 files changed

+49
-0
lines changed

.changeset/moody-clubs-hug.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/components-css/button-css/src/_mixin.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@mixin nl-button {
22
--nl-icon-block-size: var(--nl-button-icon-size);
33
--nl-icon-inline-size: var(--nl-button-icon-size);
4+
--nl-icon-color: currentColor;
45

56
align-items: center;
67
border-radius: var(--nl-button-border-radius);

packages/storybook-test/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"@types/lodash-es": "4.17.12",
3737
"@types/react": "18.3.23",
3838
"@types/react-dom": "18.3.7",
39+
"@utrecht/icon-css": "3.0.1",
3940
"@whitespace/storybook-addon-html": "8.0.2",
4041
"clsx": "2.1.1",
4142
"lodash-es": "4.17.21",

packages/storybook-test/stories/button.stories.tsx

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite';
22
import '../../components-css/icon-css/src/icon.scss';
33
import '../../components-css/button-css/src/button.scss';
44
import '../../components-css/button-css/src/test.scss';
5+
import '@utrecht/icon-css/dist/index.css';
56
import packageJSON from '../../components-react/button-react/package.json';
67
import { Icon } from '../../components-react/icon-react/src/icon';
78
import { IconAccessible } from '@tabler/icons-react';
@@ -83,6 +84,42 @@ export const ButtonIconEnd: Story = {
8384
},
8485
};
8586

87+
export const ButtonUtrechtIconStart: Story = {
88+
name: 'Button met Utrecht iconStart',
89+
args: {
90+
iconStart: (
91+
<span className="utrecht-icon">
92+
<IconAccessible />
93+
</span>
94+
),
95+
},
96+
parameters: {
97+
docs: {
98+
description: {
99+
story: `Een button met een utrecht-icon aan de linkerkant en tekst`,
100+
},
101+
},
102+
},
103+
};
104+
105+
export const ButtonUtrechtIconEnd: Story = {
106+
name: 'Button met Utrecht iconEnd',
107+
args: {
108+
iconEnd: (
109+
<span className="utrecht-icon">
110+
<IconAccessible />
111+
</span>
112+
),
113+
},
114+
parameters: {
115+
docs: {
116+
description: {
117+
story: `Een button met een utrecht-icon aan de rechterkant en tekst`,
118+
},
119+
},
120+
},
121+
};
122+
86123
export const ButtonLargeText: Story = {
87124
name: 'Button 200% zoom',
88125
args: {

pnpm-lock.yaml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)