Skip to content

fix(select): update disabled state for select trigger cross icon #2569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 19 additions & 11 deletions core/components/organisms/select/__stories__/disabled.story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ export const disabled = () => {
};

return (
<Select triggerOptions={{ disabled: true }} onSelect={onSelectHandler}>
<Select
triggerOptions={{ disabled: true }}
onSelect={onSelectHandler}
value={{ label: 'Alabama (205)', value: 'Alabama (205)' }}
>
<Select.List>
{medicineList.map((item, key) => {
return (
Expand Down Expand Up @@ -56,16 +60,20 @@ const customCode = `() => {
};

return (
<Select triggerOptions={{ disabled: true }} onSelect={onSelectHandler} >
<Select.List>
{medicineList.map((item, key) => {
return (
<Select.Option key={key} option={{ label: item.label, value: item.value }}>
{item.label}
</Select.Option>
);
})}
</Select.List>
<Select
triggerOptions={{ disabled: true }}
onSelect={onSelectHandler}
value={{ label: 'Alabama (205)', value: 'Alabama (205)' }}
>
<Select.List>
{medicineList.map((item, key) => {
return (
<Select.Option key={key} option={{ label: item.label, value: item.value }}>
{item.label}
</Select.Option>
);
})}
</Select.List>
</Select>
);
}`;
Expand Down
1 change: 0 additions & 1 deletion css/src/components/select.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@
overflow: hidden;
user-select: none;
cursor: pointer;
color: var(--inverse);
border-radius: var(--border-radius-full);
padding: var(--spacing-05);
}
Expand Down