Skip to content

Commit 7d6a8bd

Browse files
MMeijerinkJaap-Hein Wester
andauthored
Alert design review improvements (#338)
# Contents Alert design review improvements --------- Co-authored-by: Jaap-Hein Wester <j.h.wester@setonix.nl>
1 parent 6bb5b39 commit 7d6a8bd

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.changeset/two-elephants-exist.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@lux-design-system/components-react": patch
3+
---
4+
5+
💡
6+
7+
Bugfix: paragraph color

packages/components-react/src/alert/Alert.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717
--utrecht-heading-6-color: var(--utrecht-alert-color);
1818
--utrecht-heading-6-font-size: var(--lux-alert-heading-font-size);
1919
--utrecht-heading-6-line-height: var(--lux-alert-heading-font-size);
20+
--utrecht-paragraph-color: var(--utrecht-alert-color);
2021
}

packages/storybook/src/react-components/alert/alert.stories.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,17 @@ export default meta;
3737
const AlertTemplate: Story = {
3838
args: {
3939
type: 'info',
40-
children: (
40+
},
41+
render: ({ ...args }: LuxAlertProps, context) => (
42+
<LuxAlert {...args}>
4143
<>
42-
<LuxHeading1>Heading</LuxHeading1>
44+
<LuxHeading1>{context.name}</LuxHeading1>
4345
<LuxParagraph>
4446
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam quis massa lorem. Ut laoreet varius rhoncus.
4547
</LuxParagraph>
4648
</>
47-
),
48-
},
49-
render: ({ children, ...args }: LuxAlertProps) => <LuxAlert {...args}>{children}</LuxAlert>,
49+
</LuxAlert>
50+
),
5051
};
5152

5253
export const Playground: Story = {

0 commit comments

Comments
 (0)