Skip to content

Commit

Permalink
fix screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoskolodny committed Aug 7, 2023
1 parent a18cc32 commit 17ada29
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ test('Advanced Data Card without stackingGroup, with top actions and too long ti
device: 'MOBILE_IOS',
args: {
stackingGroup: false,
headlineType: 'undefined',
pretitle: '',
title: 'Too long title too long title too long titltoo long title too long title',
},
});
Expand Down
8 changes: 5 additions & 3 deletions src/community/__stories__/advanced-data-card-story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
};

type Args = {
headlineType: TagType;
headlineType: TagType | 'undefined';
pretitle: string;
title: string;
subtitle: string;
Expand Down Expand Up @@ -81,7 +81,9 @@ export const Default: StoryComponent<Args> = ({
</StackingGroup>
) : undefined
}
headline={<Tag type={headlineType}>{headlineType}</Tag>}
headline={
headlineType !== 'undefined' ? <Tag type={headlineType}>{headlineType}</Tag> : undefined
}
pretitle={pretitle}
title={title}
subtitle={subtitle}
Expand Down Expand Up @@ -116,7 +118,7 @@ Default.args = {
};
Default.argTypes = {
headlineType: {
options: ['promo', 'active', 'inactive', 'success', 'warning', 'error', undefined],
options: ['promo', 'active', 'inactive', 'success', 'warning', 'error', 'undefined'],
control: {type: 'select'},
},
actions: {
Expand Down

0 comments on commit 17ada29

Please sign in to comment.