Skip to content

Commit

Permalink
Merge pull request #1101 from tomusborne/fix/border-color-now-showing
Browse files Browse the repository at this point in the history
Fix/border color not showing
  • Loading branch information
JeanPaiva authored Aug 10, 2023
2 parents 98923b8 + 6173fc9 commit 6da5590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ GenerateBlocks was built to work hand-in-hand with [GeneratePress](https://gener
== Changelog ==

= 1.8.2 =
* Fix: Border colors not showing when old attributes are set.

= 1.8.1 =
* Fix: Icon padding controls order
Expand Down
2 changes: 1 addition & 1 deletion src/extend/inspector-control/controls/borders/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default function Borders( { attributes, setAttributes } ) {
} }
/>

{ !! bordersPanel.borderColors.length && 'Desktop' === device && ! attributes.borderColor && ! attributes.borderColorHover && ! attributes.borderColorCurrent &&
{ !! bordersPanel.borderColors.length && 'Desktop' === device &&
<div className="gblocks-border-colors">
{ bordersPanel.borderColors.map( ( borderColor, index ) => {
return (
Expand Down

0 comments on commit 6da5590

Please sign in to comment.