Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(menu): update menu z-index for defined dropdown theme variable #8121

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

kkieninger
Copy link
Contributor

@kkieninger kkieninger commented Nov 13, 2023

Closes #

📝 Description

Modifies the Menu theme properties to use the variable dropdown for z-indices, which is defined in the theme here: https://chakra-ui.com/docs/styled-system/theme#z-index-values.

⛳️ Current behavior (updates)

The Menu's z-index property is currently hardcoded to "1", which would sometimes cause open menu elements to appear behind other z-indexed elements.

🚀 New behavior

Menu's elements inherit the proper z-index value, making it more difficult to accidentally appear behind other UI elements.

💣 Is this a breaking change (Yes/No):

No

📝 Additional Information

Tested / verified this update locally in Storybook.

I didn't see an issue filed for this specifically, but it was close enough to this issue. If dedicated issues are preferred, let me know and I can create one.

#7778

Copy link

changeset-bot bot commented Nov 13, 2023

🦋 Changeset detected

Latest commit: 716aec7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@chakra-ui/theme Patch
@chakra-ui/react Patch
@chakra-ui/toast Patch
@chakra-ui/system Patch
@chakra-ui/theme-utils Patch
@chakra-ui/test-utils Patch
@chakra-ui/provider Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Nov 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
chakra-ui-storybook ✅ Ready (Inspect) Visit Preview Nov 13, 2023 10:23pm

@segunadebayo segunadebayo merged commit 170198f into chakra-ui:main Nov 13, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants