Skip to content

Commit

Permalink
fix(theme): menu overflow use clip (#4373)
Browse files Browse the repository at this point in the history
* fix(theme): menu overflow use clip
fixes listbox section sticky not working

* chore(changeset): fix listbox section sticky not working

* chore(changeset): add issue number

---------

Co-authored-by: WK Wong <wingkwong.code@gmail.com>
  • Loading branch information
Peterl561 and wingkwong authored Dec 16, 2024
1 parent 8d53e8b commit e546124
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/old-peas-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

menu base use overflow-clip to fix listbox section sticky (#4335)
2 changes: 1 addition & 1 deletion packages/core/theme/src/components/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {dataFocusVisibleClasses} from "../utils";
*/
const menu = tv({
slots: {
base: "w-full relative flex flex-col gap-1 p-1 overflow-hidden",
base: "w-full relative flex flex-col gap-1 p-1 overflow-clip",
list: "w-full flex flex-col gap-0.5 outline-none",
emptyContent: [
"h-10",
Expand Down

0 comments on commit e546124

Please sign in to comment.