From 0b7fd138663a4b9cf79d85b071f416e1323d1f85 Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Mon, 6 Jan 2025 20:52:40 +0300 Subject: [PATCH] Use CSS for colors of VWordPress and VHomeLink (#5110) * Use CSS for colors of VWordPress and VHomeLink * Fix modal background and uncommon ring color * Re-add focus * Fix missing focus-visible: --- .../components/VAudioTrack/VAudioTrack.vue | 2 +- .../VAudioTrack/layouts/VGlobalLayout.vue | 2 +- .../VBanner/VNotificationBanner.vue | 2 +- frontend/src/components/VButton.vue | 2 +- .../src/components/VCheckbox/VCheckbox.vue | 2 +- frontend/src/components/VFooter/VFooter.vue | 4 ++-- .../components/VHeader/VHeaderInternal.vue | 12 +++++------ frontend/src/components/VHeader/VHomeLink.vue | 21 +------------------ .../src/components/VHeader/VWordPressLink.vue | 14 +------------ .../VHeader/meta/VHomeLink.stories.ts | 14 +------------ .../components/VImageResult/VImageResult.vue | 2 +- .../components/VMediaInfo/VMetadataValue.vue | 2 +- .../src/components/VModal/VModalContent.vue | 4 +++- frontend/src/components/VRadio/VRadio.vue | 2 +- frontend/src/components/VTabs/VTab.vue | 2 +- frontend/src/components/meta/Focus.stories.js | 2 +- frontend/src/styles/tailwind.css | 19 +++++++++++------ frontend/tailwind.config.ts | 19 ++++++++++++----- 18 files changed, 51 insertions(+), 76 deletions(-) diff --git a/frontend/src/components/VAudioTrack/VAudioTrack.vue b/frontend/src/components/VAudioTrack/VAudioTrack.vue index f39b1834794..c945ce73b83 100644 --- a/frontend/src/components/VAudioTrack/VAudioTrack.vue +++ b/frontend/src/components/VAudioTrack/VAudioTrack.vue @@ -487,7 +487,7 @@ const handleWaveformBlur = () => { :class="{ 'audio-link cursor-pointer focus-visible:focus-bold-filled': layout === 'box', - 'cursor-pointer focus-slim-tx': layout === 'row', + 'cursor-pointer focus-visible:focus-slim-tx': layout === 'row', }" :aria-label="ariaLabel" :role="isComposite ? 'application' : undefined" diff --git a/frontend/src/components/VAudioTrack/layouts/VGlobalLayout.vue b/frontend/src/components/VAudioTrack/layouts/VGlobalLayout.vue index 06c4aa9b0d3..2facbc4e509 100644 --- a/frontend/src/components/VAudioTrack/layouts/VGlobalLayout.vue +++ b/frontend/src/components/VAudioTrack/layouts/VGlobalLayout.vue @@ -16,7 +16,7 @@ const { isHidden: shouldBlur } = useSensitiveMedia(audio) diff --git a/frontend/src/components/VHeader/VHomeLink.vue b/frontend/src/components/VHeader/VHomeLink.vue index 41421cbb812..44771a69082 100644 --- a/frontend/src/components/VHeader/VHomeLink.vue +++ b/frontend/src/components/VHeader/VHomeLink.vue @@ -3,22 +3,8 @@ * The home link for the internal header. Shows the Openverse logo and wordmark, * and does not have a loading state. */ - import VButton from "~/components/VButton.vue" import VSvg from "~/components/VSvg/VSvg.vue" - -withDefaults( - defineProps<{ - /** - * In `light` mode, the links are white and the background is dark charcoal. - * In `dark` mode, the links are dark charcoal and the background is transparent. - * - * @default 'light' - */ - variant?: "light" | "dark" - }>(), - { variant: "light" } -)