Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
fix: correct styling for disabling default webkit searchfield button
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaeho Lee committed Dec 21, 2022
1 parent 4a72419 commit 61aad5d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/metal-keys-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@greenlabs/formula-components": patch
---

fix: correct styling for disabling default webkit searchfield button
16 changes: 12 additions & 4 deletions packages/components/src/TextField/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,18 @@ export const inputStyle = style({
borderTopRightRadius: 4,
borderBottomRightRadius: 4,
selectors: {
[`&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-ms-clear`]:
{
WebkitAppearance: "none",
},
[`&::-webkit-search-decoration,
&::-webkit-search-cancel-button,
&::-webkit-search-results-button,
&::-webkit-search-results-decoration`]: {
display: "none",
},
[`&::-ms-clear,
&::-ms-reveal`]: {
display: "none",
width: 0,
height: 0,
},
[`${textFieldVariants["line.large"]} &`]: {
vars: {
[vars.inputHeight]: "33px",
Expand Down

0 comments on commit 61aad5d

Please sign in to comment.