From 727b461e43bfaa52db2f8f40c3e8d33469727c2f Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Tue, 29 Oct 2024 16:14:02 +0300 Subject: [PATCH] Use CSS for colors of VWordPress and VHomeLink --- .../components/VAudioTrack/VAudioTrack.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 | 10 ++++---- frontend/src/components/VHeader/VHomeLink.vue | 21 +---------------- .../src/components/VHeader/VWordPressLink.vue | 14 +---------- .../src/components/VImageCell/VImageCell.vue | 2 +- .../components/VMediaInfo/VMetadataValue.vue | 2 +- .../src/components/VModal/VModalContent.vue | 23 ++++++++++++++++++- 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 | 17 ++++++++++---- frontend/tailwind.config.ts | 6 ++++- 16 files changed, 57 insertions(+), 56 deletions(-) diff --git a/frontend/src/components/VAudioTrack/VAudioTrack.vue b/frontend/src/components/VAudioTrack/VAudioTrack.vue index ff93e3f21e3..85ac771c94f 100644 --- a/frontend/src/components/VAudioTrack/VAudioTrack.vue +++ b/frontend/src/components/VAudioTrack/VAudioTrack.vue @@ -431,7 +431,7 @@ const layoutBasedProps = computed(() => "cursor-pointer", { "focus-visible:focus-bold-filled": props.layout === "box", - "focus-slim-tx": props.layout === "row", + "focus-visible:focus-slim-tx": props.layout === "row", }, ], } diff --git a/frontend/src/components/VBanner/VNotificationBanner.vue b/frontend/src/components/VBanner/VNotificationBanner.vue index 3f7ab691604..d669f861801 100644 --- a/frontend/src/components/VBanner/VNotificationBanner.vue +++ b/frontend/src/components/VBanner/VNotificationBanner.vue @@ -66,7 +66,7 @@ const iconClassNames = computed(() => const closeButtonClassNames = computed(() => props.variant === "dark" - ? "focus-slim-tx-bg-complementary hover:bg-tertiary-hover" + ? "focus-visible:focus-slim-tx hover:bg-tertiary-hover" : { info: "hover:!bg-info-3", warning: "hover:!bg-warning-3", diff --git a/frontend/src/components/VButton.vue b/frontend/src/components/VButton.vue index c7990ec7fb2..94bcf06238f 100644 --- a/frontend/src/components/VButton.vue +++ b/frontend/src/components/VButton.vue @@ -223,7 +223,7 @@ watch( border: !isPlainDangerous, 'focus-visible:outline-tx': isPlainDangerous, 'focus-slim-filled': isFocusSlimFilled, - 'focus-slim-tx': isFocusSlimTx, + 'focus-visible:focus-slim-tx': isFocusSlimTx, }, ]" :aria-pressed="pressed" diff --git a/frontend/src/components/VCheckbox/VCheckbox.vue b/frontend/src/components/VCheckbox/VCheckbox.vue index 99b53c65477..7dab28ee9ac 100644 --- a/frontend/src/components/VCheckbox/VCheckbox.vue +++ b/frontend/src/components/VCheckbox/VCheckbox.vue @@ -121,7 +121,7 @@ const onChange = () => { 'h-5', 'w-5', 'rounded-sm', - 'focus-slim-tx', + 'focus-visible:focus-slim-tx', 'checked:focus-visible:border-bg-ring', ] " diff --git a/frontend/src/components/VFooter/VFooter.vue b/frontend/src/components/VFooter/VFooter.vue index 04b9e31193d..fc24cd1a28c 100644 --- a/frontend/src/components/VFooter/VFooter.vue +++ b/frontend/src/components/VFooter/VFooter.vue @@ -98,7 +98,7 @@ const linkColumnHeight = computed(() => ({
diff --git a/frontend/src/components/VHeader/VHeaderInternal.vue b/frontend/src/components/VHeader/VHeaderInternal.vue index e4e43bb0f56..0c80ea3f77d 100644 --- a/frontend/src/components/VHeader/VHeaderInternal.vue +++ b/frontend/src/components/VHeader/VHeaderInternal.vue @@ -82,7 +82,7 @@ watch(route, () => { ref="nodeRef" class="main-header z-30 flex h-20 w-full items-stretch justify-between gap-x-2 border-b border-tx px-2 py-4 md:py-4 lg:pe-10 lg:ps-6" > - +