Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/components/NcInputField/NcInputField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,20 @@ function handleInput(event: Event) {
color: var(--color-text-maxcontrast);
}

// prevent Blink and WebKit to add an additional button when type is set to search
// we have our properly styled trailing button anyways.
&::-webkit-search-cancel-button {
// its a weird bug in Blink that this rule must not be grouped with the other selectors below.
// otherwise it is not recognized by Blink
display: none;
}
Comment on lines +348 to +354
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about Firefox?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not mess with it ;)

&::-webkit-search-decoration,
&::-webkit-search-results-button,
&::-webkit-search-results-decoration,
&::-ms-clear {
display: none;
}

&:active:not([disabled]),
&:hover:not([disabled]),
&:focus:not([disabled]) {
Expand Down
Loading