Skip to content

Commit 09d0671

Browse files
authored
fix(dropdown): remove clearable icon on disabeled or readonly
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
1 parent 4f21527 commit 09d0671

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/definitions/modules/dropdown.less

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,16 @@ select.ui.dropdown {
11811181
}
11821182
}
11831183

1184+
& when (@variationDropdownDisabled) or (@variationDropdownReadonly) {
1185+
.ui.disabled.dropdown,
1186+
.ui.read-only.dropdown {
1187+
> .remove.icon,
1188+
> .label > .delete.icon {
1189+
display: none;
1190+
}
1191+
}
1192+
}
1193+
11841194
/*******************************
11851195
Variations
11861196
*******************************/

0 commit comments

Comments
 (0)