Skip to content

Commit

Permalink
Hide webkit search cancel button (#1173)
Browse files Browse the repository at this point in the history
* Hide webkit search cancel button on Input

* Hide webkit search cancel button on all inputs
  • Loading branch information
laurakwhit committed Feb 22, 2023
1 parent 5f55c14 commit 2fa2d47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ labels {
max-height: 25em;
overflow-y: scroll;
}

input[type='search']::-webkit-search-cancel-button {
display: none;
}
4 changes: 4 additions & 0 deletions src/lib/holocene/input/input.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,8 @@
.input-container.dark.disabled input {
@apply border-gray-900 bg-gray-900;
}
input[type='search']::-webkit-search-cancel-button {
@apply hidden;
}
</style>

1 comment on commit 2fa2d47

@vercel
Copy link

@vercel vercel bot commented on 2fa2d47 Feb 22, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

holocene – ./

holocene-git-main.preview.thundergun.io
holocene.preview.thundergun.io

Please sign in to comment.