Skip to content

Commit e2c61f7

Browse files
committed
Local navigation bar block: Remove default background color property.
The custom color is set using `style.color.background`, not `backgroundColor`. So when using a custom color, technically there is no `backgroundColor` attribute. The change to correctly inherit default attribute values was then setting a backgroundColor, which the color block-support prioritizes when building the style code, overriding the custom color. This default can be removed, the CSS applies the blueberry color if no other colors are set. Fixes #654
1 parent b1e4106 commit e2c61f7

File tree

1 file changed

+1
-2
lines changed
  • mu-plugins/blocks/local-navigation-bar/src

1 file changed

+1
-2
lines changed

mu-plugins/blocks/local-navigation-bar/src/block.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"default": "full"
1414
},
1515
"backgroundColor": {
16-
"type": "string",
17-
"default": "blueberry-1"
16+
"type": "string"
1817
},
1918
"layout": {
2019
"type": "object",

0 commit comments

Comments
 (0)