Skip to content

Commit

Permalink
Navigation link border and spacing support
Browse files Browse the repository at this point in the history
  • Loading branch information
karthick-murugan committed Oct 25, 2024
1 parent 0b76a25 commit b363059
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/block-library/src/navigation-link/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,26 @@
"renaming": false,
"interactivity": {
"clientNavigation": true
},
"spacing": {
"padding": true,
"margin": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true,
"__experimentalDefaultControls": {
"radius": true,
"color": true,
"width": true,
"style": true
}
}
},
"editorStyle": "wp-block-navigation-link-editor",
Expand Down
5 changes: 5 additions & 0 deletions packages/block-library/src/navigation-link/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
cursor: text;
}

.block-editor-block-list__layout {
border: none;
padding: 0 !important;
}

&.is-editing,
&.is-selected {
min-width: 20px;
Expand Down

0 comments on commit b363059

Please sign in to comment.