Skip to content

Commit

Permalink
fix(theme): removed pseudo cancel btn from input (#3912)
Browse files Browse the repository at this point in the history
* fix(theme): removed pseudo cancel btn from input

* chore(changeset): adding the changeset

* fix(input): conditionally hiding the webkit search

* chore(changeset): revise changeset message

---------

Co-authored-by: WK Wong <wingkwong.code@gmail.com>
  • Loading branch information
sanuj21 and wingkwong authored Oct 19, 2024
1 parent 8a33eab commit 38a54ab
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/forty-doors-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

remove the pseudo cancel btn from input (#3907)
2 changes: 1 addition & 1 deletion packages/core/theme/src/components/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const input = tv({
},
isClearable: {
true: {
input: "peer pe-6",
input: "peer pe-6 input-search-cancel-button-none",
clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",
},
},
Expand Down
5 changes: 5 additions & 0 deletions packages/core/theme/src/utilities/custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ export default {
".tap-highlight-transparent": {
"-webkit-tap-highlight-color": "transparent",
},
".input-search-cancel-button-none": {
"&::-webkit-search-cancel-button": {
"-webkit-appearance": "none",
},
},
};

0 comments on commit 38a54ab

Please sign in to comment.