Skip to content

Commit

Permalink
Alert design review improvements (#338)
Browse files Browse the repository at this point in the history
# Contents

Alert design review improvements 

---------

Co-authored-by: Jaap-Hein Wester <j.h.wester@setonix.nl>
  • Loading branch information
MMeijerink and Jaap-Hein Wester authored Dec 5, 2024
1 parent 6bb5b39 commit 7d6a8bd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .changeset/two-elephants-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@lux-design-system/components-react": patch
---

💡

Bugfix: paragraph color
1 change: 1 addition & 0 deletions packages/components-react/src/alert/Alert.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
--utrecht-heading-6-color: var(--utrecht-alert-color);
--utrecht-heading-6-font-size: var(--lux-alert-heading-font-size);
--utrecht-heading-6-line-height: var(--lux-alert-heading-font-size);
--utrecht-paragraph-color: var(--utrecht-alert-color);
}
11 changes: 6 additions & 5 deletions packages/storybook/src/react-components/alert/alert.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,17 @@ export default meta;
const AlertTemplate: Story = {
args: {
type: 'info',
children: (
},
render: ({ ...args }: LuxAlertProps, context) => (
<LuxAlert {...args}>
<>
<LuxHeading1>Heading</LuxHeading1>
<LuxHeading1>{context.name}</LuxHeading1>
<LuxParagraph>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam quis massa lorem. Ut laoreet varius rhoncus.
</LuxParagraph>
</>
),
},
render: ({ children, ...args }: LuxAlertProps) => <LuxAlert {...args}>{children}</LuxAlert>,
</LuxAlert>
),
};

export const Playground: Story = {
Expand Down

0 comments on commit 7d6a8bd

Please sign in to comment.