Skip to content

Commit be049d2

Browse files
authored
fix(dropdown): hidden cursor on form states
Whenever an empty (placeholder shown) multiple search dropdown got a form state (error/info/warning/success) the cursor was not shown anymore when clicking into the search field of the dropdown.
1 parent 22d29e8 commit be049d2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/definitions/collections/form.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,13 +653,15 @@
653653
}
654654

655655
/* Placeholder */
656+
.ui.form .@{state} .ui.dropdown > .default.text,
656657
.ui.form .@{state} ::placeholder {
657658
color: @formStates[@@state][inputPlaceholderColor];
658659
}
659660
.ui.form .@{state} :-ms-input-placeholder when (@supportIE) {
660661
color: @formStates[@@state][inputPlaceholderColor] !important;
661662
}
662663

664+
.ui.form .@{state} .ui.dropdown > input:focus ~ .default.text,
663665
.ui.form .@{state} :focus::placeholder {
664666
color: @formStates[@@state][inputPlaceholderFocusColor];
665667
}

src/definitions/modules/dropdown.less

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ select.ui.dropdown {
751751
opacity: @selectionTextUnderlayIconOpacity;
752752
}
753753
.ui.active.search.dropdown input.search:focus + .text {
754-
color: @selectionTextUnderlayColor !important;
754+
color: @selectionTextUnderlayColor;
755755
}
756756

757757
.ui.search.dropdown.button > span.sizer {
@@ -922,6 +922,9 @@ select.ui.dropdown {
922922
padding: inherit;
923923
margin: @multipleSelectionChildMargin;
924924
line-height: @multipleSelectionChildLineHeight;
925+
&.default {
926+
z-index: -1;
927+
}
925928
}
926929

927930
.ui.multiple.search.dropdown > .label ~ .text {
@@ -1976,7 +1979,7 @@ select.ui.dropdown {
19761979
opacity: @invertedSelectionTextUnderlayIconOpacity;
19771980
}
19781981
.ui.inverted.active.search.dropdown input.search:focus + .text {
1979-
color: @invertedSelectionTextUnderlayColor !important;
1982+
color: @invertedSelectionTextUnderlayColor;
19801983
}
19811984

19821985
.ui.dropdown .inverted.menu > .message:not(.ui),

0 commit comments

Comments
 (0)