Skip to content

Commit 6150d64

Browse files
committed
fix: update placeholder color state
1 parent 2040b9f commit 6150d64

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/components/Dropdown/Dropdown.stories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ DarkMode.parameters = {
121121
export const Reset: Story<DropDownProps> = (args) => {
122122
const [selectedId, setSelectedId] = useState<string | undefined>();
123123
const handleUnselect = () => {
124-
setSelectedId(undefined);
124+
setSelectedId('');
125125
};
126126
return (
127127
<div>
@@ -144,7 +144,6 @@ export const Reset: Story<DropDownProps> = (args) => {
144144
Reset.args = {
145145
mode: 'dark',
146146
list,
147-
selectedId: 'A001',
148147
placeholder: 'Please Select Item',
149148
};
150149

src/components/Dropdown/Dropdown.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,20 @@ const Root = styled(Box)(({ theme }) => ({
2222
backgroundColor: '#FFF',
2323
padding: '8px 0px 8px 16px',
2424
borderRadius: 4,
25+
'&.dark': {
26+
color: 'white',
27+
backgroundColor: 'rgba(0, 0 ,0, 0.2)',
28+
},
2529
'&.Dropdown-empty': {
2630
color: theme.color.secondary.$60,
31+
'&.dark': {
32+
color: theme.color.secondary.$80,
33+
},
2734
},
2835
'&.Dropdown--disabled': {
2936
opacity: 0.3,
3037
pointerEvents: 'none',
3138
},
32-
'&.dark': {
33-
color: 'white',
34-
backgroundColor: 'rgba(0, 0 ,0, 0.2)',
35-
},
3639
}));
3740

3841
const List = styled(Box)(({ theme }) => ({

0 commit comments

Comments
 (0)