Skip to content

Commit

Permalink
fix(dropdown): remove clearable icon on disabeled or readonly
Browse files Browse the repository at this point in the history
A disabled or read-only dropdown used in combination with clearable or multiple labels still showed the remove/delete icon which could indicate to still being able to delete the related value
  • Loading branch information
lubber-de committed Aug 1, 2023
1 parent 4f21527 commit 09d0671
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/definitions/modules/dropdown.less
Expand Up @@ -1181,6 +1181,16 @@ select.ui.dropdown {
}
}

& when (@variationDropdownDisabled) or (@variationDropdownReadonly) {
.ui.disabled.dropdown,
.ui.read-only.dropdown {
> .remove.icon,
> .label > .delete.icon {
display: none;
}
}
}

/*******************************
Variations
*******************************/
Expand Down

0 comments on commit 09d0671

Please sign in to comment.