Skip to content

Commit

Permalink
fix(checkbox): double click need in chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
awesome-pro committed Jul 24, 2024
1 parent 9ae43dd commit 7832f81
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-crabs-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

fixed the double click need in chrome for checkbox, switch and radiobuttons (#3528)
2 changes: 1 addition & 1 deletion packages/core/theme/src/components/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {groupDataFocusVisibleClasses} from "../utils";
*/
const checkbox = tv({
slots: {
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
wrapper: [
"relative",
"inline-flex",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/theme/src/components/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {groupDataFocusVisibleClasses} from "../utils";
*/
const radio = tv({
slots: {
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",
wrapper: [
"relative",
"inline-flex",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/theme/src/components/toggle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {groupDataFocusVisibleClasses} from "../utils";
*/
const toggle = tv({
slots: {
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent",
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent select-none",
wrapper: [
"px-1",
"relative",
Expand Down

0 comments on commit 7832f81

Please sign in to comment.