-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
UI: Lexical Fixed Toolbar z-index: 2 style leads to covering of select values in field above #8728
Comments
We cannot recreate the issue with the provided information. Please add a reproduction in order for us to be able to investigate. Why was this issue marked with the
|
Hey @n-a-t-j-b, your issue is valid, I opened a PR #8735, @denolfe will likely re-look into how we handle these! |
I can also see this issue, so I'm following. |
Fixes #8728 Before: <img width="698" alt="Screenshot 2024-10-16 at 15 28 55" src="https://github.com/user-attachments/assets/eee45448-5e97-4c2a-bbe3-727c41ed9b08"> After: <img width="509" alt="Screenshot 2024-10-16 at 15 29 27" src="https://github.com/user-attachments/assets/7e0a2af6-71be-41e7-ad84-4ae3bcece9b6">
Fixed! |
🚀 This is included in version v3.0.0-beta.123 |
This issue has been automatically locked. |
Describe the Bug
The class involved is "fixed-toolbar" and is located in @payloadcms\richtext-lexical\dist\field\bundled.css.
Not sure if the toolbar was intentionally given a z-index of 2 to combat another issue (possibly when it is a popup?), but removing the style or setting it to 0, fixes the UI problem for the Select above it. Obviously not an issue if the FixedToolbarFeature() is not configured for the field.
Apologies, having not noticed this previously I'm unsure when the issue started.
z-index:2
z-index:0
Link to the code that reproduces this issue
n/a
Reproduction Steps
Include any select field directly above a richText field type in the collection config. Enable "FixedToolbarFeature()" in lexicalEditor features e.g. for the above images this is a simplified fields[] config:
Which area(s) are affected? (Select all that apply)
plugin: richtext-lexical
Environment Info
payload: 3.0.0-beta.114
Node: 20.15.0
next: 15.0.0-canary.173
Other relevant versions
@payloadcms/richtext-lexical: 3.0.0-beta.114
lexical: 0.18.0
The text was updated successfully, but these errors were encountered: