Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
IR-2873 Fix disabled state for select dropdown arrow (#10950)
Browse files Browse the repository at this point in the history
* Fix disabled state for select dropdown arrow

* Updated disabled icon color

---------

Co-authored-by: Hanzla Mateen <[email protected]>
  • Loading branch information
hurairahmateen and hanzlamateen authored Aug 13, 2024
1 parent d89646f commit 8161d72
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/ui/src/primitives/tailwind/Select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,14 @@ const Select = <T extends OptionValueType>({
endComponent={
<MdOutlineKeyboardArrowDown
size="1.5em"
className={`mr-2 transition-transform ${showOptions.value ? 'rotate-180' : ''}`}
onClick={toggleDropdown}
className={`mr-2 transition-transform ${showOptions.value ? 'rotate-180' : ''} ${
disabled ? 'opacity-50' : ''
}`}
onClick={() => {
if (!disabled) {
toggleDropdown()
}
}}
/>
}
containerClassname={inputContainerClassName}
Expand Down

0 comments on commit 8161d72

Please sign in to comment.