Skip to content

Commit

Permalink
refactor(Select): move fixing style to trigger level to allow overrid…
Browse files Browse the repository at this point in the history
…es with custom styles
  • Loading branch information
sjschlapbach committed Jan 15, 2025
1 parent a69bb55 commit 854ce2d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/design-system/src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function Select({
data-cy={data?.cy}
data-test={data?.test}
className={twMerge(
'w-[15rem] text-base',
'w-[15rem] text-base [&>span]:text-start',
disabled && 'bg-uzh-grey-20 opacity-70',
basic && '[all:_unset]',
className?.trigger
Expand All @@ -143,9 +143,7 @@ export function Select({
{shortLabel}
</SelectValue>
) : (
<span className="text-start">
<SelectValue placeholder={placeholder}>{value}</SelectValue>
</span>
<SelectValue placeholder={placeholder}>{value}</SelectValue>
)}
</SelectTrigger>
<SelectContent
Expand Down

0 comments on commit 854ce2d

Please sign in to comment.