Skip to content

Commit

Permalink
Disable contrast checker for the background color
Browse files Browse the repository at this point in the history
Enable alpha for icons and icon background colors added in #43453
  • Loading branch information
ramonjd committed Aug 23, 2022
1 parent 26d3849 commit b2dfb82
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ Display icons linking to your social media profiles or sites. ([Source](https://

- **Name:** core/social-links
- **Category:** widgets
- **Supports:** align (center, left, right), anchor, color (background, gradients, ~~text~~), spacing (blockGap, margin, units)
- **Supports:** align (center, left, right), anchor, color (background, gradients, ~~enableContrastChecker~~, ~~text~~), spacing (blockGap, margin, units)
- **Attributes:** customIconBackgroundColor, customIconColor, iconBackgroundColor, iconBackgroundColorValue, iconColor, iconColorValue, openInNewTab, showLabels, size

## Spacer
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/social-links/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
}
},
"color": {
"enableContrastChecker": false,
"background": true,
"gradients": true,
"text": false,
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/social-links/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ export function SocialLinksEdit( props ) {
onColorChange: onChange,
isShownByDefault: true,
resetAllFilter,
enableAlpha: true,
},
] }
panelId={ clientId }
Expand Down

0 comments on commit b2dfb82

Please sign in to comment.