Skip to content

Commit

Permalink
[Alert] Patches
Browse files Browse the repository at this point in the history
  • Loading branch information
meissadia committed Nov 19, 2024
1 parent 9d0f076 commit 257b13c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Alert/Alert.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* stylelint-disable selector-class-pattern */

/* Allow icons in the alert body text to remain inline */
/* Allow icons in the alert body text to remain inline and properly colored */
.a-form-alert .a-form-alert_text .cf-icon-svg {
float: none;
color: inherit;
Expand Down
10 changes: 5 additions & 5 deletions src/components/Alert/Alert.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export default meta;

type Story = StoryObj<typeof meta>;

const AlertMessage = ({ status = 'a warning' }): ReactNode => (
const FieldLevelAlertMessage = ({ status = 'a warning' }): ReactNode => (
<>
This is a field-level alert with {status} status.{' '}
<Link hasIcon href={window.location.pathname}>
<Link hasIcon href={window.location.host}>
Link to more info <Icon name='external-link' />
</Link>
.
Expand Down Expand Up @@ -127,7 +127,7 @@ export const SuccessFieldLevel: Story = {
name: 'Success (field-level)',
args: {
status: 'success',
message: <AlertMessage status='a success' />
message: <FieldLevelAlertMessage status='a success' />
}
};

Expand All @@ -147,7 +147,7 @@ export const WarningFieldLevel: Story = {
name: 'Warning (field-level)',
args: {
status: 'warning',
message: <AlertMessage status='a warning' />
message: <FieldLevelAlertMessage status='a warning' />
}
};

Expand All @@ -167,6 +167,6 @@ export const ErrorFieldLevel: Story = {
name: 'Error (field-level)',
args: {
status: 'error',
message: <AlertMessage status='an error' />
message: <FieldLevelAlertMessage status='an error' />
}
};

0 comments on commit 257b13c

Please sign in to comment.