Skip to content

Commit

Permalink
refactor: remove cursor-hit in hiddenInputClasses (heroui-inc#4474)
Browse files Browse the repository at this point in the history
* refactor: remove cursor-hit in hiddenInputClasses

* Create lazy-ants-exercise.md

* chore(changeset): update package name

---------

Co-authored-by: աӄա <[email protected]>
  • Loading branch information
Layouwen and wingkwong authored Feb 5, 2025
1 parent 7402e00 commit a1cc378
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-ants-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@heroui/theme": patch
---

refactor: remove cursor-hit in hiddenInputClasses (#4474)
6 changes: 1 addition & 5 deletions packages/core/theme/src/utils/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ export const collapseAdjacentVariantBorders = {
};

export const hiddenInputClasses = [
// Variables
"[--cursor-hit-x:8px]",

// Font styles
"font-inherit",
"text-[100%]",
Expand All @@ -88,8 +85,7 @@ export const hiddenInputClasses = [
// Positioning & Hit area
"absolute",
"top-0",
"start-[calc(var(--cursor-hit-x)*-1)]",
"w-[calc(100%+var(--cursor-hit-x)*2)]",
"w-full",
"h-full",

// Opacity and z-index
Expand Down

0 comments on commit a1cc378

Please sign in to comment.