Skip to content

Commit

Permalink
Update the Multiselect component and avoid the default blue button co…
Browse files Browse the repository at this point in the history
…lor on iOS.
  • Loading branch information
clausbruun committed Jun 6, 2024
1 parent 3ff56df commit b41e529
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/stories/Library/multiselect/Multiselect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ export const Multiselect: React.FC<MultiselectProps> = ({
<div className="multiselect__caption">Caption for multiselect</div>
)}
<div className="multiselect">
<div className="multiselect__selected">
Mulighed 1, Mulighed 2, Mulighed 3, Mulighed 4
</div>
<div className="multiselect__opener">
<ExpandMoreIcon className="multiselect__icon" />
</div>
<button type="button" className="multiselect">
<div className="multiselect__selected">
Mulighed 1, Mulighed 2, Mulighed 3, Mulighed 4
</div>
<div className="multiselect__opener">
<ExpandMoreIcon className="multiselect__icon" />
</div>
</button>
{isOpen && (
<ul className="multiselect__options">
{options.map((item, index) => (
Expand Down
1 change: 1 addition & 0 deletions src/stories/Library/multiselect/multiselect.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
align-items: center;
flex-direction: row;
border: 1px solid $color__global-tertiary-1;
color: $color__global-grey;

&__selected {
@include typography($typo__button);
Expand Down

0 comments on commit b41e529

Please sign in to comment.