Skip to content

Commit

Permalink
color specified to black if not too dark
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanhuangg committed May 3, 2024
1 parent a741c68 commit 0de866a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/colour.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/colour.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function handleTextColors(element, color) {
if (isColorTooDark(color)) {
childElement.style.color = '#ffffff';
} else {
childElement.style.color = '';
childElement.style.color = '#000000';
}
}
}
Expand Down

0 comments on commit 0de866a

Please sign in to comment.