gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Add support for border to navigation link

Open dhananjaykuber opened this issue 1 year ago • 1 comments

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.json of core/navigation-link to include support for:
    • __experimentalBorder with color, style, and width
    • spacing.padding

Testing Instructions

  1. Go to the Site Editor or create a new post/page.
  2. Insert a Navigation block.
  3. Add a few Navigation Link items inside it.
  4. Select a Navigation Link and check the sidebar (Block settings).
  5. Confirm you can now apply: a. Border color, width, and style b. Padding around each individual link

Screenshots or screencast

Screenshot 2025-06-05 at 12 43 08 PM Screenshot 2025-06-05 at 12 43 42 PM

dhananjaykuber avatar Jun 05 '25 07:06 dhananjaykuber

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.

github-actions[bot] avatar Jun 05 '25 07:06 github-actions[bot]

Thanks for the PR!

Let me close this PR as a duplicate of #66483,

t-hamano avatar Jun 06 '25 00:06 t-hamano