Skip to content

Commit

Permalink
Combobox: 💄 tweak the visibility of chevron (#3187)
Browse files Browse the repository at this point in the history
* Combobox: 💄 tweak the visibility of chevron

* Combobox: 💄 dim visibility of icons for readonly datepicker, select, and combobox

* Combobox: 💄 dim visibility of icons for readonly datepicker, select, and combobox

* changeset
  • Loading branch information
JulianNymark authored Oct 1, 2024
1 parent 01411dc commit 73b2bca
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-gifts-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@navikt/ds-css": patch
---

Datepicker/Select: :lipstick: dim non-interactable icons when readonly is set.
1 change: 1 addition & 0 deletions @navikt/core/css/date.css
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@
/* Readonly */
.navds-date__field--readonly .navds-date__field-button {
cursor: default;
color: var(--a-gray-500);
}

.navds-date__caption-button {
Expand Down
4 changes: 4 additions & 0 deletions @navikt/core/css/form/combobox.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
pointer-events: none;
}

.navds-combobox--readonly .navds-combobox__button-toggle-list {
color: var(--a-gray-500);
}

.navds-combobox--readonly .navds-text-field__input,
.navds-combobox--readonly .navds-combobox__input {
background-color: var(--a-surface-subtle);
Expand Down
4 changes: 4 additions & 0 deletions @navikt/core/css/form/select.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,7 @@
border-color: var(--a-border-subtle);
cursor: default;
}

.navds-select--readonly .navds-select__chevron {
color: var(--a-gray-500);
}

0 comments on commit 73b2bca

Please sign in to comment.