diff --git a/src/assets/icons/openverse-logo-text.svg b/src/assets/icons/openverse-logo-text.svg
index c228afff0e..30e4d375f3 100644
--- a/src/assets/icons/openverse-logo-text.svg
+++ b/src/assets/icons/openverse-logo-text.svg
@@ -1,11 +1,15 @@
+
+
diff --git a/src/components/VAudioTrack/VPlayPause.vue b/src/components/VAudioTrack/VPlayPause.vue
index 033c13a210..ee02424298 100644
--- a/src/components/VAudioTrack/VPlayPause.vue
+++ b/src/components/VAudioTrack/VPlayPause.vue
@@ -2,18 +2,18 @@
-
+
diff --git a/src/components/VButton.vue b/src/components/VButton.vue
index db20e365ae..497a9c3da6 100644
--- a/src/components/VButton.vue
+++ b/src/components/VButton.vue
@@ -10,7 +10,7 @@
isActive && $style[`${variant}-pressed`],
$style[`size-${size}`],
isPlainDangerous
- ? ''
+ ? 'border border-tx'
: 'border border-tx focus-visible:ring focus-visible:ring-pink',
]"
:aria-pressed="pressed"
diff --git a/src/components/VCheckbox/VCheckbox.vue b/src/components/VCheckbox/VCheckbox.vue
index a7779552e2..ba24b671fa 100644
--- a/src/components/VCheckbox/VCheckbox.vue
+++ b/src/components/VCheckbox/VCheckbox.vue
@@ -9,10 +9,9 @@
/>
diff --git a/src/components/VContentReport/VContentReportForm.vue b/src/components/VContentReport/VContentReportForm.vue
index 01c0283181..db6c38e19f 100644
--- a/src/components/VContentReport/VContentReportForm.vue
+++ b/src/components/VContentReport/VContentReportForm.vue
@@ -88,7 +88,7 @@
:href="DMCA_FORM_URL"
>
{{ $t('media-details.content-report.form.dmca.open') }}
-
+
diff --git a/src/components/VHeader/VHeaderDesktop.vue b/src/components/VHeader/VHeaderDesktop.vue
index 3dd07d1298..273845f5ad 100644
--- a/src/components/VHeader/VHeaderDesktop.vue
+++ b/src/components/VHeader/VHeaderDesktop.vue
@@ -16,9 +16,12 @@
size="medium"
@submit="handleSearch"
>
-
+
@@ -27,22 +28,41 @@ import { defineComponent, PropType } from '@nuxtjs/composition-api'
import VIcon from '~/components/VIcon/VIcon.vue'
import VIconButton from '~/components/VIconButton/VIconButton.vue'
+/**
+ * The buttons placed inside the mobile search bar in the header.
+ * They are based on the VIconButton, look like they have a smallish focus area
+ * (32x32px), but actually have a larger tappable area of 48x48px to comply with
+ * accessibility requirements.
+ */
export default defineComponent({
name: 'VSearchBarButton',
components: { VIcon, VIconButton },
props: {
+ /**
+ * The path for the icon.
+ */
iconPath: {
type: String,
required: true,
},
+ /**
+ * The size of the inner area that has a different color,
+ * sometimes only when interactive.
+ */
innerSize: {
type: Number as PropType<6 | 8>,
default: 8,
},
+ /**
+ * The classes to apply to the inner area for styling resting/hover states.
+ */
innerAreaClasses: {
type: String,
default: '',
},
+ /**
+ * Whether the icon should be flipped when the page is in RTL mode.
+ */
rtlFlip: {
type: Boolean,
default: false,
diff --git a/src/components/VHeader/VSearchBar/VClearButton.vue b/src/components/VHeader/VSearchBar/VClearButton.vue
deleted file mode 100644
index 6ddfa75ff1..0000000000
--- a/src/components/VHeader/VSearchBar/VClearButton.vue
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
diff --git a/src/components/VHeader/meta/VContentSettingsButton.stories.mdx b/src/components/VHeader/meta/VContentSettingsButton.stories.mdx
deleted file mode 100644
index e08f4a8d7e..0000000000
--- a/src/components/VHeader/meta/VContentSettingsButton.stories.mdx
+++ /dev/null
@@ -1,45 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from '@storybook/addon-docs'
-import VContentSettingsButton from '~/components/VHeader/VHeaderMobile/VContentSettingsButton.vue'
-
- ({
- template: '
',
- }),
- ]}
- argTypes={{
- click: {
- action: 'click',
- },
- }}
-/>
-
-export const Template = (args, { argTypes }) => ({
- template: ` `,
- components: { VContentSettingsButton },
- props: Object.keys(argTypes),
- setup() {
- return { args }
- },
-})
-
-# Content Settings button
-
-
-
-
-
-The button that opens the content settings modal on screens up to `lg` breakpoint.
-If any filters are selected, it shows a pink dot in the top right corner.
-
-
- {Template.bind({})}
-
diff --git a/src/components/VHeader/meta/VSearchBarButtons.stories.mdx b/src/components/VHeader/meta/VSearchBarButtons.stories.mdx
new file mode 100644
index 0000000000..f692bbb4d5
--- /dev/null
+++ b/src/components/VHeader/meta/VSearchBarButtons.stories.mdx
@@ -0,0 +1,117 @@
+import {
+ ArgsTable,
+ Canvas,
+ Description,
+ Meta,
+ Story,
+} from '@storybook/addon-docs'
+import VContentSettingsButton from '~/components/VHeader/VHeaderMobile/VContentSettingsButton'
+import VSearchBarButton from '~/components/VHeader/VHeaderMobile/VSearchBarButton.vue'
+
+import closeIcon from '~/assets/icons/close-small.svg'
+import chevronLeftIcon from '~/assets/icons/chevron-left.svg'
+import sourceIcon from '~/assets/icons/source.svg'
+
+
+
+export const Template = (args) => ({
+ template: `
`,
+ components: { VSearchBarButton },
+ setup() {
+ if (!args.iconPath) {
+ args.iconPath = closeIcon
+ }
+ return { args, closeIcon, chevronLeftIcon, sourceIcon }
+ },
+})
+
+# Content Settings button
+
+
+
+
+
+
+ {Template.bind({})}
+
+
+export const contentSettingsTemplate = (args) => ({
+ template: `
+
+
+
+ `,
+ components: { VContentSettingsButton },
+ setup() {
+ return { args }
+ },
+})
+
+## Content Settings button with filters selected
+
+The button that opens the content settings modal on screens up to `lg` breakpoint.
+If any filters are selected, it shows a pink dot in the top right corner.
+
+
+
+ {contentSettingsTemplate.bind({})}
+
+
+
+## Clear button and Back button
+
+export const activeButtonsTemplate = (args) => ({
+ template: `
+
+
+
`,
+ components: { VContentSettingsButton },
+ setup() {
+ return { args, closeIcon, chevronLeftIcon }
+ },
+})
+
+
+ {activeButtonsTemplate.bind({})}
+
diff --git a/src/components/VHeaderOld/VLogoButtonOld.vue b/src/components/VHeaderOld/VLogoButtonOld.vue
index 68543c2473..41791b39f0 100644
--- a/src/components/VHeaderOld/VLogoButtonOld.vue
+++ b/src/components/VHeaderOld/VLogoButtonOld.vue
@@ -11,16 +11,19 @@
:status="isFetching ? 'loading' : 'idle'"
:auto-resize="autoResizeLogo"
/>
-
+ viewBox="0 0 95 15"
+ aria-hidden="true"
+ focusable="false"
+ >
+
+
diff --git a/src/components/VHeaderOld/VPageMenu/VPageList.vue b/src/components/VHeaderOld/VPageMenu/VPageList.vue
index 55fd912c6a..2ec09aced5 100644
--- a/src/components/VHeaderOld/VPageMenu/VPageList.vue
+++ b/src/components/VHeaderOld/VPageMenu/VPageList.vue
@@ -18,8 +18,7 @@
diff --git a/src/components/VIcon/VIcon.vue b/src/components/VIcon/VIcon.vue
index 50b1815b16..14eea89bf2 100644
--- a/src/components/VIcon/VIcon.vue
+++ b/src/components/VIcon/VIcon.vue
@@ -1,7 +1,7 @@
[4, 5, 6].includes(val),
- },
/**
* whether to flip the icon for RTL languages; This generally makes sense
* for directional icons such as those involving arrows.
diff --git a/src/components/VIconButton/VIconButton.vue b/src/components/VIconButton/VIconButton.vue
index 2feb4de23d..73dc8785a5 100644
--- a/src/components/VIconButton/VIconButton.vue
+++ b/src/components/VIconButton/VIconButton.vue
@@ -2,16 +2,16 @@
-
+
@@ -80,13 +80,13 @@ export default defineComponent({
const type = (attrs['type'] ?? 'button') as ButtonType
const buttonSizeClasses = computed(() => SIZE_MAP[props.size].button)
- const iconSizeClasses = computed(() => SIZE_MAP[props.size].icon)
+ const iconSize = computed(() => SIZE_MAP[props.size].icon)
return {
type,
buttonSizeClasses,
- iconSizeClasses,
+ iconSize,
}
},
})
diff --git a/src/components/VLicense/VLicense.vue b/src/components/VLicense/VLicense.vue
index 474450ad70..c4381c1647 100644
--- a/src/components/VLicense/VLicense.vue
+++ b/src/components/VLicense/VLicense.vue
@@ -4,10 +4,9 @@
diff --git a/src/components/VLicense/VLicenseElements.vue b/src/components/VLicense/VLicenseElements.vue
index e07cfdbd67..e9ed8ffaff 100644
--- a/src/components/VLicense/VLicenseElements.vue
+++ b/src/components/VLicense/VLicenseElements.vue
@@ -7,7 +7,7 @@
>
{{
diff --git a/src/components/VLink.vue b/src/components/VLink.vue
index 324c316569..cef9cf8538 100644
--- a/src/components/VLink.vue
+++ b/src/components/VLink.vue
@@ -22,8 +22,7 @@
diff --git a/src/components/VModal/VModalContent.vue b/src/components/VModal/VModalContent.vue
index f4d68bd1ff..2a19833a27 100644
--- a/src/components/VModal/VModalContent.vue
+++ b/src/components/VModal/VModalContent.vue
@@ -47,7 +47,7 @@
@click="hide()"
>
{{ $t('modal.close') }}
-
+
@@ -67,8 +67,14 @@
-