Skip to content

Commit

Permalink
fix: removed duplicate class definition
Browse files Browse the repository at this point in the history
  • Loading branch information
jarosmpost committed Nov 13, 2024
1 parent 6aa530e commit 7f5d577
Show file tree
Hide file tree
Showing 2 changed files with 207 additions and 87 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,21 @@ type Story = StoryObj;
const Template: Story = {
render: (args: Args, context: StoryContext) => {
const [_, updateArgs] = useArgs();
const classes = [
'form-select',
args.size,
args.sizeFloatingLabel,
args.validation,
args.floatingLabelPlaceholder && !args.value ? 'form-select-empty' : null,
]
const classes = (
args.floatingLabel
? [
'form-select',
args.sizeFloatingLabel,
args.validation,
args.floatingLabelPlaceholder && !args.value ? 'form-select-empty' : null,
]
: [
'form-select',
args.size,
args.validation,
args.floatingLabelPlaceholder && !args.value ? 'form-select-empty' : null,
]
)
.filter(c => c && c !== 'null')
.join(' ');
const useAriaLabel = !args.floatingLabel && args.hiddenLabel;
Expand Down
Loading

0 comments on commit 7f5d577

Please sign in to comment.