Skip to content

Commit

Permalink
fix: adjust luminosity contrast ratio in theme color
Browse files Browse the repository at this point in the history
  • Loading branch information
hoppe committed Sep 26, 2022
1 parent 3fecbf5 commit adb31be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class ThemeColorsComponent implements OnDestroy {
return {
key,
value: actualColor,
text: tinycolor.mostReadable(actualColor, [color, contrast]).toHexString(),
text: tinycolor.mostReadable(actualColor, [color, contrast, "#000", "#fff"]).toHexString(),
};
});
this.changeDetector.markForCheck();
Expand Down

0 comments on commit adb31be

Please sign in to comment.