mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(theme): double click issue on checkbox, toggle and radio (#3552)
* fix(theme): double click issue on checkbox, toggle and radio
This commit is contained in:
parent
14e25e1257
commit
97f233b346
5
.changeset/sweet-crabs-buy.md
Normal file
5
.changeset/sweet-crabs-buy.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@nextui-org/theme": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fixed the double click need in chrome for checkbox, switch and radiobuttons (#3528)
|
||||||
@ -21,7 +21,7 @@ import {groupDataFocusVisibleClasses} from "../utils";
|
|||||||
*/
|
*/
|
||||||
const checkbox = tv({
|
const checkbox = tv({
|
||||||
slots: {
|
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: [
|
wrapper: [
|
||||||
"relative",
|
"relative",
|
||||||
"inline-flex",
|
"inline-flex",
|
||||||
|
|||||||
@ -27,7 +27,7 @@ import {groupDataFocusVisibleClasses} from "../utils";
|
|||||||
*/
|
*/
|
||||||
const radio = tv({
|
const radio = tv({
|
||||||
slots: {
|
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: [
|
wrapper: [
|
||||||
"relative",
|
"relative",
|
||||||
"inline-flex",
|
"inline-flex",
|
||||||
|
|||||||
@ -30,7 +30,7 @@ import {groupDataFocusVisibleClasses} from "../utils";
|
|||||||
*/
|
*/
|
||||||
const toggle = tv({
|
const toggle = tv({
|
||||||
slots: {
|
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: [
|
wrapper: [
|
||||||
"px-1",
|
"px-1",
|
||||||
"relative",
|
"relative",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user