Skip to content

Commit

Permalink
fix(dropdown): hidden cursor on form states
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lubber-de authored May 23, 2024
1 parent 22d29e8 commit be049d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/definitions/collections/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -653,13 +653,15 @@
}

/* Placeholder */
.ui.form .@{state} .ui.dropdown > .default.text,
.ui.form .@{state} ::placeholder {
color: @formStates[@@state][inputPlaceholderColor];
}
.ui.form .@{state} :-ms-input-placeholder when (@supportIE) {
color: @formStates[@@state][inputPlaceholderColor] !important;
}

.ui.form .@{state} .ui.dropdown > input:focus ~ .default.text,
.ui.form .@{state} :focus::placeholder {
color: @formStates[@@state][inputPlaceholderFocusColor];
}
Expand Down
7 changes: 5 additions & 2 deletions src/definitions/modules/dropdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ select.ui.dropdown {
opacity: @selectionTextUnderlayIconOpacity;
}
.ui.active.search.dropdown input.search:focus + .text {
color: @selectionTextUnderlayColor !important;
color: @selectionTextUnderlayColor;
}

.ui.search.dropdown.button > span.sizer {
Expand Down Expand Up @@ -922,6 +922,9 @@ select.ui.dropdown {
padding: inherit;
margin: @multipleSelectionChildMargin;
line-height: @multipleSelectionChildLineHeight;
&.default {
z-index: -1;
}
}

.ui.multiple.search.dropdown > .label ~ .text {
Expand Down Expand Up @@ -1976,7 +1979,7 @@ select.ui.dropdown {
opacity: @invertedSelectionTextUnderlayIconOpacity;
}
.ui.inverted.active.search.dropdown input.search:focus + .text {
color: @invertedSelectionTextUnderlayColor !important;
color: @invertedSelectionTextUnderlayColor;
}

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

0 comments on commit be049d2

Please sign in to comment.