We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcafc81 commit d5cf301Copy full SHA for d5cf301
test/unit/styles.spec.ts
@@ -99,6 +99,16 @@ import { expect } from '../test-setup';
99
);
100
});
101
102
+ it("should have sufficient main-on-container text contrast", () => {
103
+ const mainColor = theme.mainColor;
104
+ const bgColor = theme.containerBackground;
105
+
106
+ const contrast = polished.getContrast(mainColor, bgColor);
107
+ expect(contrast).to.be.greaterThan(normalContrastTarget,
108
+ `Constrast for ${mainColor}/${bgColor} was only ${contrast}`
109
+ );
110
+ });
111
112
it("should have sufficient container watermark contrast", () => {
113
const mainColor = theme.containerWatermark;
114
const bgColor = theme.containerBackground;
0 commit comments