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

[Block] Navigation: Long Menu Titles do not break-word in order to wrap within Columns block #52298

Closed
cuemarie opened this issue Jul 5, 2023 · 2 comments · Fixed by #54866
Closed
Assignees
Labels
[Block] Navigation Affects the Navigation Block [Type] Bug An existing feature does not function as intended

Comments

@cuemarie
Copy link

cuemarie commented Jul 5, 2023

Description

If a Navigation block is set up in a Columns block, and one menu item has a long single word (with no spaces or hyphens), the menu item doesn't wrap at the edge of the column it's nested in; it overflows into the next column.

Step-by-step reproduction instructions

  1. Activate a block theme such as TT3
  2. On a new post, add a Columns block with a 25/75 split
  3. In the left column, add a Navigation Block
  4. (For ease of testing, I recommend setting the Nav Block's Orientation to Vertical under the block settings)
  5. Create/rename a menu item with a long one-word title, such as Supercalifragilisticexpialidocious

Instead of wrapping the long word to contain it within the column, the nav block flows right off the side of the column.

Context

While Supercalifragilisticexpialidocious is not a likely menu item name, but words such as Documentation, Photojournalism, Notifications could certainly run into this type of issue in a vertical menu / column layout setup.

Screenshots, screen recording, code snippet

Markup on 2023-07-04 at 17:07:36

It seems this is caused by the word-break: normal in this CSS:

.wp-block-navigation .wp-block-navigation-item__label {
  overflow-wrap: break-word;
  word-break: normal;
}
Screen.Capture.on.2023-07-04.at.17-07-52.mp4

Environment info

  • WordPress 6.2.2
  • Tested with Gutenberg 16.1.1 active as well as with Gutenberg deactivated.

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

@jordesign jordesign added [Type] Bug An existing feature does not function as intended [Block] Navigation Affects the Navigation Block labels Jul 5, 2023
@jordesign
Copy link
Contributor

Tested and confirmed this behaviour 👍

@getdave
Copy link
Contributor

getdave commented Sep 15, 2023

@scruffian We should look to fix this in the 6.4 beta cycle whilst bug fixes are still allowed to be shipped. What do you think?

@getdave getdave self-assigned this Sep 27, 2023
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Sep 27, 2023
@mikachan mikachan removed the [Status] In Progress Tracking issues with work in progress label Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block [Type] Bug An existing feature does not function as intended
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants