diff options
author | vkalev <vjk1883@gmail.com> | 2021-07-15 22:13:41 -0500 |
---|---|---|
committer | vkalev <vjk1883@gmail.com> | 2021-07-15 22:13:41 -0500 |
commit | 0f1e83c036c5ece55179c50251a239daae219771 (patch) | |
tree | 96c2b17e8de0ba06eb47163a30daff02fab92fc6 /src/client/views/StyleProvider.tsx | |
parent | 48620bbe25f92eb179d53846aae5f0164ca6f1c2 (diff) | |
parent | 31a00f5e5d374b8a2945525a75f80f4148c143b7 (diff) |
Merge branch 'master' of https://github.com/brown-dash/Dash-Web into ink-gfx-victor
Merging master changes into ink branch
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
-rw-r--r-- | src/client/views/StyleProvider.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index 9e61351c4..47a4a192c 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -127,7 +127,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps case DocumentType.LABEL: docColor = docColor || (doc.annotationOn !== undefined ? "rgba(128, 128, 128, 0.18)" : undefined); break; case DocumentType.BUTTON: docColor = docColor || (darkScheme() ? "#2d2d2d" : "lightgray"); break; case DocumentType.LINKANCHOR: docColor = isAnchor ? "lightblue" : "transparent"; break; - case DocumentType.LINK: docColor = docColor || "transparent"; break; + case DocumentType.LINK: docColor = (isAnchor ? docColor : "") || "transparent"; break; case DocumentType.IMG: case DocumentType.WEB: case DocumentType.PDF: |