Skip to content

Commit

Permalink
docs(ScreenReaderAnnouncer): fix args in storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiccarrington committed Nov 19, 2024
1 parent 343785b commit a1c54db
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { commonStyles } from '../../storybook/helper.stories.argtypes';
import { LEVELS, DEFAULTS } from './ScreenReaderAnnouncer.constants';

const screenReaderAnnouncerArgTypes = {
Expand All @@ -16,14 +15,14 @@ const screenReaderAnnouncerArgTypes = {
},
level: {
description: 'The aria-live value for the announcement',
options: [undefined, ...LEVELS.ASSERTIVE],
options: [undefined, LEVELS.POLITE, LEVELS.ASSERTIVE],
control: { type: 'select' },
table: {
type: {
summary: 'string',
},
defaultValue: {
summary: 'undefined',
summary: DEFAULTS.LEVEL,
},
},
},
Expand Down Expand Up @@ -58,6 +57,5 @@ const screenReaderAnnouncerArgTypes = {
export { screenReaderAnnouncerArgTypes };

export default {
...commonStyles,
...screenReaderAnnouncerArgTypes,
};

0 comments on commit a1c54db

Please sign in to comment.