Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Fix colour contrast failures in accent text, hints and version badge (#8866)

Anthony Stirlinge6a982ea23dd
diff --git a/frontend/src/editor/core/components/fileEditor/FileEditorThumbnail.module.css b/frontend/src/editor/core/components/fileEditor/FileEditorThumbnail.module.css
index 7888d2f4e9..7e889e5b61 100644
--- a/frontend/src/editor/core/components/fileEditor/FileEditorThumbnail.module.css
+++ b/frontend/src/editor/core/components/fileEditor/FileEditorThumbnail.module.css
@@ -265,7 +265,7 @@
}
.versionBadgeThumb {
- background: var(--mantine-color-blue-6);
+ background: var(--c-primary-hover);
border-radius: 4px;
padding: 1px 5px;
font-size: 10px;
diff --git a/frontend/src/editor/core/components/shared/FileSidebarFileItem.css b/frontend/src/editor/core/components/shared/FileSidebarFileItem.css
index e33c148b2f..2082f8c872 100644
--- a/frontend/src/editor/core/components/shared/FileSidebarFileItem.css
+++ b/frontend/src/editor/core/components/shared/FileSidebarFileItem.css
@@ -374,7 +374,6 @@
.file-sidebar-empty-hint {
font-size: 11px;
color: var(--c-text-subtle);
- opacity: 0.7;
margin: 0;
}
diff --git a/frontend/src/editor/core/components/viewer/ThumbnailSidebar.tsx b/frontend/src/editor/core/components/viewer/ThumbnailSidebar.tsx
index e5ee2bc02c..2700884ae1 100644
--- a/frontend/src/editor/core/components/viewer/ThumbnailSidebar.tsx
+++ b/frontend/src/editor/core/components/viewer/ThumbnailSidebar.tsx
@@ -309,7 +309,7 @@ export function ThumbnailSidebar({
fontWeight: 500,
color:
scrollState.currentPage === pageIndex + 1
- ? "var(--color-primary-500)"
+ ? "var(--c-accent-fg, var(--c-primary))"
: "var(--c-text-subtle)",
}}
>
diff --git a/frontend/src/editor/core/pages/SettingsPage.css b/frontend/src/editor/core/pages/SettingsPage.css
index 5d8f6e83cb..fc6cc77693 100644
--- a/frontend/src/editor/core/pages/SettingsPage.css
+++ b/frontend/src/editor/core/pages/SettingsPage.css
@@ -66,7 +66,6 @@
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--c-text-subtle);
- opacity: 0.75;
}
.settings-page .modal-nav-section-items {
diff --git a/frontend/src/editor/core/theme/colors.css b/frontend/src/editor/core/theme/colors.css
index 953bb644c7..6fc39a0539 100644
--- a/frontend/src/editor/core/theme/colors.css
+++ b/frontend/src/editor/core/theme/colors.css
@@ -203,7 +203,7 @@ html[data-app-theme="custom"] {
--c-primary-hover: color-mix(in srgb, var(--c-primary) 80%, var(--p-black));
--c-primary-subtle: color-mix(in srgb, var(--c-primary) 14%, transparent);
--c-text-on-primary: var(--p-white);
- --c-accent-fg: var(--c-primary);
+ --c-accent-fg: var(--c-accent-text);
/* Accent used as TEXT: --c-primary and its 80% hover both land under
4.5:1 on the accent-tinted surfaces they appear on (chips, links,
outline buttons), so accent copy takes a deeper step of the hue. */