Skip to content

Commit

Permalink
docs(XXX-0000): add sort-order alphabetic
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoyan Delev committed Mar 28, 2023
1 parent 353f8d2 commit f7d75a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const parameters = {
},
options: {
storySort: {
method: 'alphabetical',
order: ['Welcome', 'Components', 'Utilities', 'Deprecated', '*'],
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
};

const StyledTextBlock = styled(TextBlock)`
${getColorCssFromTheme('backgroundColor', 'blue010')}
${getColorCssFromTheme('backgroundColor', 'interactivePrimary010')}
`;

const renderTextBlockWithPreset = (
Expand All @@ -31,7 +31,7 @@ const renderTextBlockWithPreset = (

return presetList.map((preset: string) => (
<StorybookCase title={` ${preset}`}>
<StyledTextBlock typographyPreset={preset}>
<StyledTextBlock stylePreset="inkBase" typographyPreset={preset}>
The quick brown fox
</StyledTextBlock>
</StorybookCase>
Expand Down

0 comments on commit f7d75a3

Please sign in to comment.