-
Notifications
You must be signed in to change notification settings - Fork 83
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: remove no longer needed z-index for root menu-bar items #7743
Conversation
Quality Gate passedIssues Measures |
Hi @web-padawan and @web-padawan, when i performed cherry-pick to this commit to 24.3, i have encountered the following issue. Can you take a look and pick it manually? |
This ticket/PR has been released with Vaadin 24.5.0.beta2 and is also targeting the upcoming stable 24.5.0 version. |
Description
Fixes #7489
The code related to
z-index
was originally added when creatingvaadin-menu-bar
for Vaadin 14 due to the problem of handling clicks on root level menu items - see vaadin/vaadin-menu-bar#69. The issue aboutvaadin-menu-bar-button
consuming clicks was apparently caused by native<button>
withposition: absolute
used by V14vaadin-button
.However, since in Vaadin 22 we changed
<vaadin-button>
to not use native<button>
internally, these styles are no longer needed. Furthermore, removing them resolves the Firefox issue (which unfortunately can only be tested manually at the moment), so it seems like this rendering bug is a combination ofcontainer-type: size
andz-index
properties.Type of change
Note
I confirmed that
z-index: 1
is still needed in V14 to allow clicks on root level items with the following example: