fix: hide lone nav items and improve primary text contrast
This commit is contained in:
1 parent
cb7a899c77
commit
b9c2365bca
4 files changed
+67
-31
No files matched your search
@@ -54,6 +54,13 @@ describe('primary color', () => {
|
||||
expect(styleText()).not.toContain('#db3e24');
|
||||
});
|
||||
|
||||
it('uses dark text on light colors where white would be hard to read', () => {
|
||||
applyPrimaryColor('app', 'Honey');
|
||||
const [light] = styleText().split("[data-theme='dark']");
|
||||
expect(light).toContain('--sc-primary-fg: #2a2b0d !important;');
|
||||
expect(light).not.toContain('--sc-primary-fg: #ffffff !important;');
|
||||
});
|
||||
|
||||
it('makes the hover lighter on dark and darker on light', () => {
|
||||
applyPrimaryColor('app', 'Clover');
|
||||
const [light, dark] = styleText().split("[data-theme='dark']");
|
||||
|
||||
Reference in new issue
Block a user