Skip to content

Commit adb94a6

Browse files
authored
fix(ui): Remove opacity from Select placeholder (#7574)
1 parent 87f1fc5 commit adb94a6

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.changeset/fruity-donuts-study.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/ui': patch
3+
---
4+
5+
Remove opacity from `Select` placeholder

packages/ui/src/elements/Select.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -393,16 +393,7 @@ export const SelectButton = (
393393

394394
let show: React.ReactNode = children;
395395
if (!children) {
396-
show = selectedOption ? (
397-
buttonRenderOption(selectedOption)
398-
) : (
399-
<Text
400-
as='span'
401-
sx={t => ({ opacity: t.opacity.$inactive })}
402-
>
403-
{placeholder}
404-
</Text>
405-
);
396+
show = selectedOption ? buttonRenderOption(selectedOption) : <Text as='span'>{placeholder}</Text>;
406397
}
407398

408399
return (

0 commit comments

Comments
 (0)