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

Nested Submenu block not rendering submenu/overlay colours on the front end #36427

Closed
tellthemachines opened this issue Nov 12, 2021 · 0 comments · Fixed by #36476
Closed

Nested Submenu block not rendering submenu/overlay colours on the front end #36427

tellthemachines opened this issue Nov 12, 2021 · 0 comments · Fixed by #36476
Assignees
Labels
[Block] Submenu Affects the Submenu Block - for submenus in navigation [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@tellthemachines
Copy link
Contributor

Description

If a custom or theme submenu/overlay colour is set on the Navigation block, any Submenu block it contains won't inherit those styles on the front end, because the colour classnames and inline styles aren't rendered in the block. In the editor the colours appear correctly.

Step-by-step reproduction instructions

  1. In a Navigation block, set Submenu & overlay text and background colours to other than default value.
  2. Add a Submenu block to the Navigation, and add another Submenu inside the Submenu.
  3. Save, and verify that while in the editor the colours appear correct, in the front end the nested Submenu colours are still the default ones.

Screenshots, screen recording, code snippet

The submenu li doesn't have the same classnames as the navigation link li:
Screen Shot 2021-11-12 at 12 59 06 pm

Environment info

No response

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

@tellthemachines tellthemachines added [Type] Bug An existing feature does not function as intended [Block] Submenu Affects the Submenu Block - for submenus in navigation labels Nov 12, 2021
@tellthemachines tellthemachines self-assigned this Nov 15, 2021
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Submenu Affects the Submenu Block - for submenus in navigation [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant