Skip to content

Commit a1cc378

Browse files
Layouwenwingkwong
andauthored
refactor: remove cursor-hit in hiddenInputClasses (#4474)
* refactor: remove cursor-hit in hiddenInputClasses * Create lazy-ants-exercise.md * chore(changeset): update package name --------- Co-authored-by: աӄա <[email protected]>
1 parent 7402e00 commit a1cc378

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.changeset/lazy-ants-exercise.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@heroui/theme": patch
3+
---
4+
5+
refactor: remove cursor-hit in hiddenInputClasses (#4474)

packages/core/theme/src/utils/classes.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ export const collapseAdjacentVariantBorders = {
6969
};
7070

7171
export const hiddenInputClasses = [
72-
// Variables
73-
"[--cursor-hit-x:8px]",
74-
7572
// Font styles
7673
"font-inherit",
7774
"text-[100%]",
@@ -88,8 +85,7 @@ export const hiddenInputClasses = [
8885
// Positioning & Hit area
8986
"absolute",
9087
"top-0",
91-
"start-[calc(var(--cursor-hit-x)*-1)]",
92-
"w-[calc(100%+var(--cursor-hit-x)*2)]",
88+
"w-full",
9389
"h-full",
9490

9591
// Opacity and z-index

0 commit comments

Comments
 (0)