Skip to content

Commit

Permalink
useColors: fix contrast check (#19500)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored Jan 8, 2020
1 parent 4ba6ca0 commit 87e5415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/colors/use-colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export default function __experimentalUseColors(
while (
backgroundColor === 'rgba(0, 0, 0, 0)' &&
backgroundColorNode.parentNode &&
backgroundColorNode.parentNode === Node.ELEMENT_NODE
backgroundColorNode.parentNode.nodeType === Node.ELEMENT_NODE
) {
backgroundColorNode = backgroundColorNode.parentNode;
backgroundColor = getComputedStyle( backgroundColorNode )
Expand Down

0 comments on commit 87e5415

Please sign in to comment.