Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/green-cameras-say.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-documentation': patch
---

Replaced empty label option for overflow utilities with `unset` for better clarity across all overflow controls (`overflow`, `overflowX`, `overflowY`).
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const meta: MetaExtended = {
control: {
type: 'select',
},
options: ['', 'auto', 'hidden', 'scroll', 'visible'],
options: ['unset', 'auto', 'hidden', 'scroll', 'visible'],
table: {
category: 'General',
},
Expand All @@ -27,7 +27,7 @@ const meta: MetaExtended = {
control: {
type: 'select',
},
options: ['', 'auto', 'hidden', 'scroll', 'visible'],
options: ['unset', 'auto', 'hidden', 'scroll', 'visible'],
table: {
category: 'General',
},
Expand All @@ -38,7 +38,7 @@ const meta: MetaExtended = {
control: {
type: 'select',
},
options: ['', 'auto', 'hidden', 'scroll', 'visible'],
options: ['unset', 'auto', 'hidden', 'scroll', 'visible'],
table: {
category: 'General',
},
Expand All @@ -47,9 +47,9 @@ const meta: MetaExtended = {
render: (args: Args) => {
return html`
<div
class="my-container ${args.overflow ? 'overflow-' + args.overflow : ''}${args.overflowX
class="my-container ${args.overflow && args.overflow !== 'unset' ? 'overflow-' + args.overflow : ''}${args.overflowX && args.overflowX !== 'unset'
? ' overflow-x-' + args.overflowX
: ''}${args.overflowY ? ' overflow-y-' + args.overflowY : ''}"
: ''}${args.overflowY && args.overflowY !== 'unset' ? ' overflow-y-' + args.overflowY : ''}"
>
<div class="content">
This is a long text content that demonstrates how the overflow property works. This paragraph contains several sentences that will help show the different overflow behaviors when the container is too small to contain all the text. It's useful for testing different overflow settings and seeing how they affect the layout and scrolling capabilities of the container element.
Expand Down