Skip to content

Commit

Permalink
feat: adding closeButtonLabel and -Title to storybook stories
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinLaubenstein committed Apr 3, 2023
1 parent 369ae0a commit 4d63435
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export const Template = (args, { argTypes }) => ({
:auto-hide-duration="autoHideDuration"
:auto-hide="autoHide"
:opened="opened"
:close-button-label="closeButtonLabel"
:close-button-title="closeButtonTitle"
>
{{ heading }}
<p v-if="text">{{ text }}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export default {
opened: { type: Boolean },
autoHide: { type: Boolean, default: false },
autoHideDuration: { type: Number, default: 3000 },
closeButtonLabel: { type: String, default: 'close' },
closeButtonTitle: { type: String, default: 'close' },
},
};
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export const Template = (args, { argTypes }) => ({
:auto-hide-duration="autoHideDuration"
:auto-hide="autoHide"
:opened="opened"
:close-button-label="closeButtonLabel"
:close-button-title="closeButtonTitle"
>
{{ heading }}
<p v-if="text">{{ text }}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export default {
opened: { type: Boolean },
autoHideDuration: { type: Number, default: 3000 },
autoHide: { type: Boolean, default: false },
closeButtonLabel: { type: String, default: 'close' },
closeButtonTitle: { type: String, default: 'close' },
},
};
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export const Template = (args, { argTypes }) => ({
:opened="opened"
:auto-hide-duration="autoHideDuration"
:auto-hide="autoHide"
:close-button-label="closeButtonLabel"
:close-button-title="closeButtonTitle"
><p slot="header">Informational toast headline</p>
</scale-notification-toast>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export default {
autoHideDuration: { type: Number, default: 3000 },
autoHide: { type: Boolean, default: false },
styles: { type: String },
closeButtonLabel: { type: String, default: 'close' },
closeButtonTitle: { type: String, default: 'close' },
},
};
</script>

0 comments on commit 4d63435

Please sign in to comment.