-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
BUGFIX: Prevent hideDrawer call on hovering menu #3289
BUGFIX: Prevent hideDrawer call on hovering menu #3289
Conversation
Do you know how this bug was introduced? And i dont like that the ui constants now differ from their original origin in Neos.Neos https://github.com/neos/neos-development-collection/blob/3d2ddf4a8191aafe8ac536092c9fb64bd8d6a45c/Neos.Neos/Resources/Private/Styles/_CSSVariables.scss#L57 |
They need to be removed in 9.0 from Neos.Neos IMO. |
I would like to have a proper system for the z-indices. But as those are currently internal variables, I think we don't have to worry about changing them again at some point? |
The variables are exposed via react-ui-components We still have no clue about this no?
Im just curious because the fix is a bit magic to me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it, and from the functionality its working.
The commit history should give some answers maybe 🤔 It COULD also be that you tried to fix another problem at a different location, and that's how this error came about 🤷🏽. |
Most CSS problems came from the different behaviour how the old build system composed extended styles. Markus knows the details as he fixed a few of them already. |
I guess it is complicated to find the real root cause in this case. Guess it is a combination of some changes. Because in composes, we create a subset of styles and don't overwrite. |
That would be awesome. Not so many elements that all use z index 1, and then you have the issues when you need to fix something or extend something. |
a i see f22441d was a regression too ;) im just trying to keep track of the things that broke, so in the case we go back to composes we would know what to adjust... but it doesnt seem like a good idea to ever do that? 😅 |
Can open a PR and can adopt them there as well... to be in sync |
In the neos-ui we are adopting some z-index values to have more flexibility. To be in sync we should changed it here as well. @see neos/neos-ui#3289
@mhsdesign synced the z-index values neos/neos-development-collection#3975 |
In the neos-ui we are adopting some z-index values to have more flexibility. To be in sync we should changed it here as well. @see neos/neos-ui#3289
* TASK: Give z-index constants more space * BUGFIX: Prevent closing drawer while hovering menu items * TASK: Fix codestyle mentions
In the neos-ui we are adopting some z-index values to have more flexibility. To be in sync we should changed it here as well. @see neos/neos-ui#3289
Since 8.2 the drawer closes while hovering the menu items. We had some issues with the focus shift over all layers.
Because more or less everything was with z-index 1 in that case.
What I did
The drawer has now a higher z-index. The already existing constants have no more space between. But did not touch the most context bounded constants.
The text of the button now also fills the whole existing space.
How to verify it
Open the drawer menu and hover slowly over the menu items, especially where no test is.
Fixes: #3286