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

Navigation: Reset button overlaps on the text when the text is long #68625

Closed
3 of 6 tasks
yogeshbhutkar opened this issue Jan 13, 2025 · 0 comments · Fixed by #68626
Closed
3 of 6 tasks

Navigation: Reset button overlaps on the text when the text is long #68625

yogeshbhutkar opened this issue Jan 13, 2025 · 0 comments · Fixed by #68626
Assignees
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@yogeshbhutkar
Copy link
Contributor

yogeshbhutkar commented Jan 13, 2025

Description

This issue can be observed in the Navigation block's Submenu & Overlay Background color setting. The text for this setting becomes overly large, causing the Reset button to overlap with it. This not only affects the UI's appearance but also hinders usability, making it challenging for users to interact with the controls.

This problem was previously discussed in PR #68454, where similar behavior was highlighted. Addressing this issue is crucial to ensure a polished and user-friendly experience in the editor.

Step-by-step reproduction instructions

  1. Navigate to Navigation block.
  2. Try providing a Submenu & Overlay Background color.
  3. Notice the Submenu & Overlay Background setting's text under Color settings overlaps with the reset button.

Screenshots, screen recording, code snippet

Image

If the display text becomes longer, then an ellipsis is added to the overflowed text:
Image

Expected behavior:
The maximum available width by the label should also consider the width that might be taken by the reset button and display the ellipsis accordingly.

Environment info

  • WordPress Version: 6.8-alpha-59361
  • Gutenberg Version: Trunk (0c42f22)
  • OS: macOS Sequoia

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@yogeshbhutkar yogeshbhutkar added the [Type] Bug An existing feature does not function as intended label Jan 13, 2025
@yogeshbhutkar yogeshbhutkar changed the title ColorGradientSettingsDropdown: Reset button overlaps on the text when the text is too large Navigation: Reset button overlaps on the text when the text is too large Jan 13, 2025
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jan 13, 2025
@yogeshbhutkar yogeshbhutkar changed the title Navigation: Reset button overlaps on the text when the text is too large Navigation: Reset button overlaps on the text when the text is long Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
1 participant