Skip to content

Commit

Permalink
Merge pull request #685 from danskernesdigitalebibliotek/DDFLSBP-685-…
Browse files Browse the repository at this point in the history
…remove-dropdown-capitilazion

DDFLSBP-685 - Remove uppercase on dropdown and multiselect elements
  • Loading branch information
Dresse authored Aug 7, 2024
2 parents 058b367 + d9ef362 commit 61b0e63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/stories/Library/dropdown/dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ $_dropdown-icon-size: 50px;
.dropdown__select {
$_padding: 20px;

@include typography($typo__button);

appearance: none;
-webkit-appearance: none;
min-width: 230px;
Expand All @@ -37,8 +39,7 @@ $_dropdown-icon-size: 50px;
padding-right: $_dropdown-icon-size + $_padding;
text-overflow: ellipsis;
white-space: nowrap;

@include typography($typo__button);
text-transform: none;

// Chromeium based browsers will trigger focus when opening the dropdown
@extend %default-focus-visible;
Expand All @@ -49,7 +50,6 @@ $_dropdown-icon-size: 50px;
}

.dropdown__option {
text-transform: capitalize;
background-color: #f9f9f9;
height: 400px;

Expand Down Expand Up @@ -85,6 +85,7 @@ $_dropdown-icon-size: 50px;
height: 100%;
padding: $s-sm $s-md;
min-width: 200px;
text-transform: none;
}

.dropdown__select--inline-body-font {
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 @@ -17,6 +17,7 @@
text-overflow: ellipsis;
padding: 0 $s-md;
cursor: pointer;
text-transform: none;
}

&__opener {
Expand Down

0 comments on commit 61b0e63

Please sign in to comment.