Add support for border to navigation link
What?
Closes #61746 – Nav Block: Add Support for Separator Block & Borders
This PR adds support for border and padding controls to the core/navigation-link block.
Why?
Currently, there's no way to visually separate navigation links within the navigation block using borders. This enhancement allowing users to style navigation links with borders and spacing to better match custom designs.
How?
- Updated the
block.jsonofcore/navigation-linkto include support for:__experimentalBorderwithcolor,style, andwidthspacing.padding
Testing Instructions
- Go to the Site Editor or create a new post/page.
- Insert a Navigation block.
- Add a few Navigation Link items inside it.
- Select a Navigation Link and check the sidebar (Block settings).
- Confirm you can now apply: a. Border color, width, and style b. Padding around each individual link
Screenshots or screencast
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.
If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
Co-authored-by: dhananjaykuber <[email protected]>
Co-authored-by: bhubbard <[email protected]>
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.
Thanks for the PR!
Let me close this PR as a duplicate of #66483,