Skip to content

Commit e0b8c4d

Browse files
authored
chore(docs): removed duplicate size class from select (#4867)
1 parent f74b035 commit e0b8c4d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/hot-experts-wink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@swisspost/design-system-documentation': patch
3+
---
4+
5+
Removed duplicate size class from `select` elements using floating labels.

packages/documentation/src/stories/components/forms/select/select.stories.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ const Template: Story = {
213213
const [_, updateArgs] = useArgs();
214214
const classes = [
215215
'form-select',
216-
args.size,
217-
args.sizeFloatingLabel,
216+
args.floatingLabel ? args.sizeFloatingLabel : args.size, // Only include the appropriate size based on mode
218217
args.validation,
219218
args.floatingLabelPlaceholder && !args.value ? 'form-select-empty' : null,
220219
]

0 commit comments

Comments
 (0)