Skip to content

Commit

Permalink
Merge pull request #984 from sagalbot/fix-chrome-search-input-css
Browse files Browse the repository at this point in the history
Fix Chrome search-cancel-button
  • Loading branch information
sagalbot committed Nov 8, 2019
2 parents 38f291a + 941f618 commit 1a5ba31
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/scss/modules/_search-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
$line-height: $vs-component-line-height;
$font-size: 1em;

/**
* Super weird bug... If this declaration is grouped
* below, the cancel button will still appear in chrome.
* If it's up here on it's own, it'll hide it.
*/
.vs__search::-webkit-search-cancel-button {
display: none;
}

.vs__search::-webkit-search-decoration,
.vs__search::-webkit-search-cancel-button,
.vs__search::-webkit-search-results-button,
.vs__search::-webkit-search-results-decoration,
.vs__search::-ms-clear {
Expand Down

0 comments on commit 1a5ba31

Please sign in to comment.