Skip to content

Commit

Permalink
feat(modal): add a max width to buttons so they overflow to the right…
Browse files Browse the repository at this point in the history
… if needed
  • Loading branch information
Leotheluck authored and dpellier committed Jul 29, 2024
1 parent ea46244 commit 9a9aaa2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/storybook/stories/components/modal/modal.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@ export const Demo: StoryObj = {
`.modal-demo .my-text::part(text) {
margin: 0 0 1rem 0;
}
.modal-demo ods-button {
max-width: 100%;
}
.modal-demo ods-button::part(button) {
margin-top: 1rem;
max-width: 100%;
}`
},
};
Expand Down Expand Up @@ -218,6 +220,12 @@ export const NotDismissible: StoryObj = {
});
})();
</script>
<style>
.modal-not-dismissible ods-button {
max-width: 100%;
}
</style>
`,
};

Expand Down Expand Up @@ -277,6 +285,9 @@ export const Actions: StoryObj = {
.modal-actions .modal-actions-close::part(button) {
margin-top: 1rem;
}
.modal-actions ods-button {
max-width: 100%;
}
</style>
`,
};

0 comments on commit 9a9aaa2

Please sign in to comment.