Skip to content

Commit

Permalink
MALIN-642 fix: chevron rotations on open
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaanesen committed Jan 30, 2024
1 parent ef42756 commit 886fd51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/formElements/MdMultiSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const MdMultiSelect = React.forwardRef<HTMLButtonElement, MdMultiSelectProps>(
<div className="md-multiselect__button-hasmultiple">+{selected.length - 1}</div>
)}
<div aria-hidden="true" className="md-multiselect__button-icon">
<MdChevronIcon />
<MdChevronIcon transform={`rotate(${open ? '180' : '0'})`} />
</div>
</button>

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/formElements/MdSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const MdSelect = React.forwardRef<HTMLButtonElement, MdSelectProps>(
>
<div className="md-select__button-text">{displayValue}</div>
<div aria-hidden="true" className="md-select__button-icon">
<MdChevronIcon />
<MdChevronIcon transform={`rotate(${open ? '180' : '0'})`} />
</div>
</button>

Expand Down

0 comments on commit 886fd51

Please sign in to comment.