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 block HTML anchor doesn't add an id attribute to HTML #35349

Closed
jacobcassidy opened this issue Oct 5, 2021 · 2 comments
Closed

Navigation block HTML anchor doesn't add an id attribute to HTML #35349

jacobcassidy opened this issue Oct 5, 2021 · 2 comments

Comments

@jacobcassidy
Copy link
Contributor

Description

When adding and saving an "HTML anchor" in the Navigation block Advanced menu, no HTML id attribute is created for the nav element (adding class(es) works, however).

Step-by-step reproduction instructions

  1. Add a navigation block
  2. Select the block settings for the navigation container
  3. Open the Advanced dropdown menu in the block settings
  4. Add an "HTML anchor" in the Advance dropdown menu
  5. Save the page
  6. Open the live page and use the inspector tool to check the HTML for the nav element you just created
  7. Notice the lack of an "id" attribute.
  8. Optional, go back to step 3 and add a class in the "Additional CSS class(es)" input field.
  9. Do step 6 again and notice that the class has been added to confirm that classes are added but an id is not.

Screenshots, screen recording, code snippet

No response

Environment info

  • WP version 5.8.1
  • Gutenberg version 11.6.0
  • No other plugins installed

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

@carolinan
Copy link
Contributor

I believe this is a duplicate of #29401

@jacobcassidy
Copy link
Contributor Author

@carolinan, you are correct. I searched the "Navigation block" under projects and it didn't turn up in that list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants