Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Audit buttons (#1864)
Olga Bulatafd7c7deaee8
diff --git a/src/components/VAudioTrack/VPlayPause.vue b/src/components/VAudioTrack/VPlayPause.vueindex 282e32d0b..033c13a21 100644--- a/src/components/VAudioTrack/VPlayPause.vue+++ b/src/components/VAudioTrack/VPlayPause.vue@@ -34,9 +34,9 @@ import { computed, defineComponent, PropType } from '@nuxtjs/composition-api'import { AudioLayout, AudioStatus, statusVerbMap } from '~/constants/audio'import { defineEvent } from '~/types/emits'+import type { ButtonConnections, ButtonVariant } from '~/types/button'import VIconButton from '~/components/VIconButton/VIconButton.vue'-import type { ButtonConnections, ButtonVariant } from '~/components/VButton.vue'import playIcon from '~/assets/icons/play.svg'import pauseIcon from '~/assets/icons/pause.svg'diff --git a/src/components/VButton.vue b/src/components/VButton.vueindex fc85a732a..4ba785a25 100644--- a/src/components/VButton.vue+++ b/src/components/VButton.vue@@ -2,14 +2,16 @@<Component:is="as":type="typeRef"- class="flex appearance-none items-center justify-center rounded-sm no-underline ring-offset-1 transition-shadow duration-100 ease-linear focus:outline-none disabled:opacity-70"+ class="flex appearance-none items-center justify-center rounded-sm no-underline ring-offset-1 transition-shadow duration-100 ease-linear focus:outline-none":class="[$style.button,$style[variant],isConnected && $style[`connection-${connections}`],isActive && $style[`${variant}-pressed`],$style[`size-${size}`],- isPlainDangerous ? '' : 'focus-visible:ring focus-visible:ring-pink',+ isPlainDangerous+ ? ''+ : 'border border-tx focus-visible:ring focus-visible:ring-pink',]":aria-pressed="pressed":aria-disabled="ariaDisabledRef"@@ -37,37 +39,17 @@ import {import { warn } from '~/utils/console'import type { ProperlyExtractPropTypes } from '~/types/prop-extraction'+import {+ ButtonConnections,+ buttonForms,+ ButtonSize,+ ButtonType,+ ButtonVariant,+} from '~/types/button'+import type { ButtonForm } from '~/types/button'import VLink from '~/components/VLink.vue'-export const buttonForms = ['VLink', 'button'] as const--type ButtonForm = typeof buttonForms[number]--export const buttonVariants = [- 'primary',- 'secondary',- 'tertiary',- 'menu',- 'action-menu',- 'action-menu-secondary',- 'action-menu-muted',- 'action-menu-muted-pressed',- 'plain',- 'plain--avoid',- 'full',-] as const-export type ButtonVariant = typeof buttonVariants[number]--export const buttonSizes = ['large', 'medium', 'small', 'disabled'] as const-export type ButtonSize = typeof buttonSizes[number]--export const buttonTypes = ['button', 'submit', 'reset'] as const-export type ButtonType = typeof buttonTypes[number]--export const buttonConnections = ['start', 'end', 'none', 'all'] as const-export type ButtonConnections = typeof buttonConnections[number]-export type ButtonProps = ProperlyExtractPropTypes<NonNullable<typeof VButton['props']>>@@ -264,7 +246,7 @@ export default VButton<style module>.button[disabled='disabled'],.button[aria-disabled='true'] {- @apply opacity-50;+ @apply cursor-not-allowed;}.size-small {@@ -284,64 +266,79 @@ a.button {}.primary {- @apply bg-pink text-white hover:bg-dark-pink hover:text-white;+ @apply border-tx bg-pink text-white hover:border-tx hover:bg-dark-pink hover:text-white;}-.primary-pressed {@apply bg-dark-pink;}.secondary {- @apply bg-dark-charcoal font-bold text-white hover:bg-dark-charcoal-80 hover:text-white;+ @apply border-tx bg-tx hover:bg-dark-charcoal hover:text-white focus-visible:ring focus-visible:ring-pink;}-.secondary-pressed {- @apply border border-tx bg-dark-charcoal-80 hover:border-tx;+ @apply border-tx bg-dark-charcoal text-white hover:border-tx hover:bg-dark-charcoal-90;}--.tertiary {- @apply border border-dark-charcoal-20 bg-white text-dark-charcoal ring-offset-0 focus-visible:border-tx;+.secondary[disabled='disabled'],+.secondary[aria-disabled='true'] {+ @apply border-tx bg-tx text-dark-charcoal-40;}-.tertiary[disabled='disabled'],-.tertiary[aria-disabled='true'],-.action-menu[disabled='disabled'],-.action-menu[aria-disabled='true'] {- @apply border-dark-charcoal-10 bg-dark-charcoal-10;+.secondary-filled {+ @apply border-tx bg-dark-charcoal text-white hover:bg-dark-charcoal-80 hover:text-white focus-visible:ring focus-visible:ring-pink disabled:bg-dark-charcoal-10 disabled:text-dark-charcoal-40;}-.tertiary-pressed {- @apply border-tx bg-dark-charcoal text-white;+.secondary-bordered {+ @apply border-dark-charcoal bg-tx hover:bg-dark-charcoal hover:text-white focus-visible:border-tx disabled:bg-dark-charcoal-10 disabled:text-dark-charcoal-40;+}+.secondary-bordered-pressed {+ @apply bg-dark-charcoal text-white hover:border-tx hover:bg-dark-charcoal-90 focus-visible:bg-dark-charcoal-90;+}+.secondary-filled[disabled='disabled'],+.secondary-bordered[disabled='disabled'],+.secondary-filled[aria-disabled='true'],+.secondary-bordered[aria-disabled='true'] {+ @apply border-tx bg-dark-charcoal-10 text-dark-charcoal-40;}+.menu {- @apply border border-tx bg-white text-dark-charcoal ring-offset-0;+ @apply border-tx bg-white text-dark-charcoal ring-offset-0;}.menu-pressed {- @apply border border-tx bg-dark-charcoal text-white;+ @apply border-tx bg-dark-charcoal text-white;}.action-menu {- @apply border border-tx bg-tx text-dark-charcoal hover:border-dark-charcoal-20;+ @apply border-tx bg-tx text-dark-charcoal hover:border-dark-charcoal-20;}--.action-menu-secondary {- @apply border border-tx bg-white text-dark-charcoal hover:border-dark-charcoal-20;+.action-menu-pressed {+ @apply border-tx bg-dark-charcoal text-white hover:bg-dark-charcoal-90;}-.action-menu-secondary-pressed {- @apply border-tx bg-dark-charcoal text-white;+/**+Similar to `action-menu`, but always has a border, not only on hover.+https://www.figma.com/file/GIIQ4sDbaToCfFQyKMvzr8/Openverse-Design-Library?node-id=1684%3A3678+ */+.action-menu-bordered {+ @apply border-dark-charcoal-20 bg-white text-dark-charcoal focus-visible:border-tx;}--.action-menu-pressed {- @apply border-tx bg-dark-charcoal text-white hover:border-tx;+.action-menu-bordered-pressed {+ @apply border-dark-charcoal bg-dark-charcoal text-white hover:bg-dark-charcoal-90;}.action-menu-muted {- @apply border border-tx bg-dark-charcoal-10 text-dark-charcoal hover:border-dark-charcoal-20;+ @apply border-tx bg-dark-charcoal-10 text-dark-charcoal hover:border-dark-charcoal-20;}-.action-menu-muted-pressed {- @apply border border-tx bg-dark-charcoal text-white;+ @apply border-tx bg-dark-charcoal text-white;+}++.action-menu[disabled='disabled'],+.action-menu[aria-disabled='true'],+.action-menu-muted[disabled='disabled'],+.action-menu-muted[aria-disabled='true'],+.action-menu-bordered[disabled='disabled'],+.action-menu-bordered[aria-disabled='true'] {+ @apply border-dark-charcoal-10 bg-dark-charcoal-10 text-dark-charcoal-40;}.full {diff --git a/src/components/VContentReport/VContentReportButton.vue b/src/components/VContentReport/VContentReportButton.vueindex 3c486c136..793edfa99 100644--- a/src/components/VContentReport/VContentReportButton.vue+++ b/src/components/VContentReport/VContentReportButton.vue@@ -1,7 +1,7 @@<template><VButtonvariant="plain"- class="report-button font-semibold text-dark-charcoal-70"+ class="report-button font-semibold text-dark-charcoal-70 hover:underline"><span class="text-sr md:hidden md:text-base">{{$t('media-details.content-report.short')diff --git a/src/components/VContentReport/VContentReportForm.vue b/src/components/VContentReport/VContentReportForm.vueindex f5f56a287..01c028318 100644--- a/src/components/VContentReport/VContentReportForm.vue+++ b/src/components/VContentReport/VContentReportForm.vue@@ -76,7 +76,7 @@</div><div class="flex flex-row items-center justify-end gap-4">- <VButton variant="tertiary" @click="handleCancel">+ <VButton variant="secondary-bordered" @click="handleCancel">{{ $t('media-details.content-report.form.cancel') }}</VButton>@@ -84,10 +84,8 @@v-if="selectedReason === DMCA"key="dmca"as="VLink"- variant="secondary"+ variant="secondary-filled":href="DMCA_FORM_URL"- target="_blank"- rel="noopener noreferrer">{{ $t('media-details.content-report.form.dmca.open') }}<VIcon :size="4" class="ms-1" :icon-path="icons.externalLink" />@@ -98,7 +96,7 @@type="submit":disabled="isSubmitDisabled":focusable-when-disabled="true"- variant="secondary"+ variant="secondary-filled":value="$t('media-details.content-report.form.submit')">{{ $t('media-details.content-report.form.submit') }}diff --git a/src/components/VContentSwitcher/VSearchTypeButton.vue b/src/components/VContentSwitcher/VSearchTypeButton.vueindex 27eaecd15..98814afdb 100644--- a/src/components/VContentSwitcher/VSearchTypeButton.vue+++ b/src/components/VContentSwitcher/VSearchTypeButton.vue@@ -1,6 +1,6 @@<template><VButton- class="flex flex-row py-2 text-sr font-semibold md:text-base"+ class="group flex flex-row py-2 text-sr font-semibold md:text-base":class="[sizeClasses,isHeaderScrolled ? 'max-w-[10rem] sm:max-w-[20rem] md:max-w-[16rem]' : '',@@ -18,7 +18,7 @@>{{ buttonLabel }}</span><VIcon- class="hidden text-dark-charcoal-40 md:block md:ms-2"+ class="hidden text-dark-charcoal-40 group-hover:text-white md:block md:ms-2":icon-path="caretDownIcon"/></VButton>@@ -32,7 +32,8 @@ import {ref,} from '@nuxtjs/composition-api'-import { ALL_MEDIA, SearchType } from '~/constants/media'+import { ALL_MEDIA, type SearchType } from '~/constants/media'+import type { ButtonVariant } from '~/types/button'import useSearchType from '~/composables/use-search-type'import { useI18n } from '~/composables/use-i18n'import { isMinScreen } from '~/composables/use-media-query'@@ -82,12 +83,12 @@ export default defineComponent({}})- const buttonVariant = computed(() => {+ const buttonVariant = computed<ButtonVariant>(() => {if (props.type === 'searchbar') {return 'action-menu'} else {return isMinScreenMd.value && !isHeaderScrolled?.value- ? 'tertiary'+ ? 'action-menu-bordered': 'action-menu'}})diff --git a/src/components/VContentSwitcher/VSearchTypeRadio.vue b/src/components/VContentSwitcher/VSearchTypeRadio.vueindex 31a05df97..297b4c991 100644--- a/src/components/VContentSwitcher/VSearchTypeRadio.vue+++ b/src/components/VContentSwitcher/VSearchTypeRadio.vue@@ -1,26 +1,33 @@<template>- <button+ <VButtontype="button"- class="flex flex-row items-center rounded-sm border border-dark-charcoal p-2 text-sr font-semibold pe-3 hover:bg-dark-charcoal hover:text-white focus:outline-none focus-visible:ring focus-visible:ring-pink focus-visible:hover:border-white"- :class="[- selected- ? 'bg-dark-charcoal text-white focus-visible:border focus-visible:border-white'- : 'bg-tx focus-visible:border-tx',- ]"+ variant="secondary-bordered"+ size="disabled"+ class="caption-bold h-10 py-2 ps-2 pe-3":aria-pressed="selected"@click="handleClick"><VIcon :icon-path="iconPath" class="flex-shrink-0 me-1" />- <span>{{ $t(`search-type.${searchType}`) }}</span>- </button>+ <span>{{ $t(labelMapping[searchType]) }}</span>+ </VButton></template><script lang="ts">-import { computed, defineComponent, PropType } from '@nuxtjs/composition-api'+import {+ computed,+ defineComponent,+ type PropType,+} from '@nuxtjs/composition-api'-import { ALL_MEDIA, AUDIO, IMAGE, SupportedSearchType } from '~/constants/media'+import {+ ALL_MEDIA,+ AUDIO,+ IMAGE,+ type SupportedSearchType,+} from '~/constants/media'import { defineEvent } from '~/types/emits'+import VButton from '~/components/VButton.vue'import VIcon from '~/components/VIcon/VIcon.vue'import audioIcon from '~/assets/icons/audio-wave.svg'@@ -32,10 +39,15 @@ const iconMapping = {[IMAGE]: imageIcon,[ALL_MEDIA]: allIcon,}+const labelMapping = {+ [AUDIO]: 'search-type.audio',+ [IMAGE]: 'search-type.image',+ [ALL_MEDIA]: 'search-type.all',+}export default defineComponent({name: 'VSearchTypeRadio',- components: { VIcon },+ components: { VButton, VIcon },props: {/*** One of the media types supported.@@ -55,7 +67,7 @@ export default defineComponent({setup(props, { emit }) {const iconPath = computed(() => iconMapping[props.searchType])const handleClick = () => emit('select', props.searchType)- return { iconPath, handleClick }+ return { iconPath, handleClick, labelMapping }},})</script>diff --git a/src/components/VContentSwitcherOld/VSearchTypeButtonOld.vue b/src/components/VContentSwitcherOld/VSearchTypeButtonOld.vueindex ca4394ef2..09f520bfd 100644--- a/src/components/VContentSwitcherOld/VSearchTypeButtonOld.vue+++ b/src/components/VContentSwitcherOld/VSearchTypeButtonOld.vue@@ -1,9 +1,12 @@<template><VButton- class="flex flex-row py-2 text-sr font-semibold md:text-base"+ class="group flex flex-row py-2 text-sr font-semibold md:text-base":class="[sizeClasses,- isHeaderScrolled ? 'max-w-[10rem] sm:max-w-[20rem] md:max-w-[16rem]' : '',+ {+ 'max-w-[10rem] sm:max-w-[20rem] md:max-w-[16rem]': isHeaderScrolled,+ 'group-hover:border-dark-charcoal-20': isInSearchBar && !isPressed,+ },]":variant="buttonVariant"size="disabled"@@ -32,7 +35,8 @@ import {ref,} from '@nuxtjs/composition-api'-import { ALL_MEDIA, SearchType } from '~/constants/media'+import { ALL_MEDIA, type SearchType } from '~/constants/media'+import type { ButtonVariant } from '~/types/button'import useSearchType from '~/composables/use-search-type'import { useI18n } from '~/composables/use-i18n'import { isMinScreen } from '~/composables/use-media-query'@@ -82,12 +86,12 @@ export default defineComponent({}})- const buttonVariant = computed(() => {+ const buttonVariant = computed<ButtonVariant>(() => {if (props.type === 'searchbar') {return 'action-menu'} else {return isMinScreenMd.value && !isHeaderScrolled?.value- ? 'tertiary'+ ? 'action-menu-bordered': 'action-menu'}})@@ -95,6 +99,9 @@ export default defineComponent({return i18n.t(`search-type.${props.activeItem}`)})+ const isInSearchBar = computed(() => props.type === 'searchbar')+ const isPressed = computed(() => Boolean(props.a11yProps['aria-expanded']))+return {buttonVariant,sizeClasses,@@ -102,6 +109,8 @@ export default defineComponent({caretDownIcon,isHeaderScrolled,isMinScreenMd,+ isInSearchBar,+ isPressed,icon: computed(() => icons[activeItem.value]),}},diff --git a/src/components/VContentSwitcherOld/VSearchTypePopoverOld.vue b/src/components/VContentSwitcherOld/VSearchTypePopoverOld.vueindex 569ca25ab..3ae54e620 100644--- a/src/components/VContentSwitcherOld/VSearchTypePopoverOld.vue+++ b/src/components/VContentSwitcherOld/VSearchTypePopoverOld.vue@@ -11,11 +11,6 @@:a11y-props="a11yProps"aria-controls="content-switcher-popover":active-item="activeItem"- :class="{- '!border-tx': isInSearchBar,- '!bg-white group-hover:!border-dark-charcoal-20 group-hover:focus:!border-tx':- isInSearchBar && !a11yProps['aria-expanded'],- }":type="placement"/></template>diff --git a/src/components/VCopyButton.vue b/src/components/VCopyButton.vueindex 1ccc0c855..83b448599 100644--- a/src/components/VCopyButton.vue+++ b/src/components/VCopyButton.vue@@ -2,7 +2,7 @@<VButton:id="id"type="button"- variant="secondary"+ variant="secondary-filled"size="disabled"class="py-2 px-3 text-sr":data-clipboard-target="el"diff --git a/src/components/VHeader/VFilterButton.vue b/src/components/VHeader/VFilterButton.vueindex 31df8b6b5..c3595a387 100644--- a/src/components/VHeader/VFilterButton.vue+++ b/src/components/VHeader/VFilterButton.vue@@ -28,19 +28,14 @@</template><script lang="ts">-import {- computed,- defineComponent,- inject,- toRefs,- ref,-} from '@nuxtjs/composition-api'+import { computed, defineComponent, inject, ref } from '@nuxtjs/composition-api'import { useSearchStore } from '~/stores/search'import { defineEvent } from '~/types/emits'+import type { ButtonVariant } from '~/types/button'import { useI18n } from '~/composables/use-i18n'-import VButton, { ButtonVariant } from '~/components/VButton.vue'+import VButton from '~/components/VButton.vue'import VIcon from '~/components/VIcon/VIcon.vue'import filterIcon from '~/assets/icons/filter.svg'@@ -65,10 +60,9 @@ export default defineComponent({tab: defineEvent<[KeyboardEvent]>(),toggle: defineEvent(),},- setup(props) {+ setup() {const i18n = useI18n()const searchStore = useSearchStore()- const { pressed } = toRefs(props)const isMinScreenMd = inject('isMinScreenMd', ref(false))const isHeaderScrolled = inject('isHeaderScrolled', ref(false))const filterCount = computed(() => searchStore.appliedFilterCount)@@ -81,7 +75,7 @@ export default defineComponent({const variant = computed(() => {// Show the bordered state by default, unless below mdlet value: ButtonVariant = isMinScreenMd.value- ? 'tertiary'+ ? 'action-menu-bordered': 'action-menu'if (isHeaderScrolled.value) {@@ -90,10 +84,6 @@ export default defineComponent({if (filtersAreApplied.value) {value = 'action-menu-muted'}- // Override the default VButton pressed style- if (pressed.value) {- value = 'action-menu-muted-pressed'- }return value})diff --git a/src/components/VHeaderOld/VFilterButtonOld.vue b/src/components/VHeaderOld/VFilterButtonOld.vueindex 14bf5db27..712a3ff40 100644--- a/src/components/VHeaderOld/VFilterButtonOld.vue+++ b/src/components/VHeaderOld/VFilterButtonOld.vue@@ -28,19 +28,14 @@</template><script lang="ts">-import {- computed,- defineComponent,- inject,- toRefs,- ref,-} from '@nuxtjs/composition-api'+import { computed, defineComponent, inject, ref } from '@nuxtjs/composition-api'import { useSearchStore } from '~/stores/search'+import type { ButtonVariant } from '~/types/button'import { defineEvent } from '~/types/emits'import { useI18n } from '~/composables/use-i18n'-import VButton, { ButtonVariant } from '~/components/VButton.vue'+import VButton from '~/components/VButton.vue'import VIcon from '~/components/VIcon/VIcon.vue'import filterIcon from '~/assets/icons/filter.svg'@@ -65,10 +60,9 @@ export default defineComponent({tab: defineEvent<[KeyboardEvent]>(),toggle: defineEvent(),},- setup(props) {+ setup() {const i18n = useI18n()const searchStore = useSearchStore()- const { pressed } = toRefs(props)const isMinScreenMd = inject('isMinScreenMd', ref(false))const isHeaderScrolled = inject('isHeaderScrolled', ref(false))const filterCount = computed(() => searchStore.appliedFilterCount)@@ -81,7 +75,7 @@ export default defineComponent({const variant = computed(() => {// Show the bordered state by default, unless below mdlet value: ButtonVariant = isMinScreenMd.value- ? 'tertiary'+ ? 'action-menu-bordered': 'action-menu'if (isHeaderScrolled.value) {@@ -90,10 +84,6 @@ export default defineComponent({if (filtersAreApplied.value) {value = 'action-menu-muted'}- // Override the default VButton pressed style- if (pressed.value) {- value = 'action-menu-muted-pressed'- }return value})diff --git a/src/components/VHeaderOld/VPageMenu/VPageMenuButton.vue b/src/components/VHeaderOld/VPageMenu/VPageMenuButton.vueindex d2ced42ca..71c3bc639 100644--- a/src/components/VHeaderOld/VPageMenu/VPageMenuButton.vue+++ b/src/components/VHeaderOld/VPageMenu/VPageMenuButton.vue@@ -2,7 +2,7 @@<VButtonvariant="action-menu"size="disabled"- class="w-12 p-2 font-semibold leading-7 focus-visible:border-tx"+ class="w-12 p-2":aria-label="$t('header.aria.menu')"data-testid="page-menu-button"v-bind="a11yProps"diff --git a/src/components/VIconButton/VIconButton.vue b/src/components/VIconButton/VIconButton.vueindex ac9a14d5c..291eca97e 100644--- a/src/components/VIconButton/VIconButton.vue+++ b/src/components/VIconButton/VIconButton.vue@@ -20,9 +20,10 @@<script lang="ts">import { computed, defineComponent, PropType } from '@nuxtjs/composition-api'-import VIcon, { IconProps } from '~/components/VIcon/VIcon.vue'-import VButton, { ButtonProps } from '~/components/VButton.vue'-import type { ButtonType } from '~/components/VButton.vue'+import type { ButtonType } from '~/types/button'++import VIcon, { type IconProps } from '~/components/VIcon/VIcon.vue'+import VButton, { type ButtonProps } from '~/components/VButton.vue'const SIZE_MAP = Object.freeze({tiny: { icon: 'w-6 h-6', button: 'w-6 h-6' },diff --git a/src/components/VMetaSearch/VMetaSourceList.vue b/src/components/VMetaSearch/VMetaSourceList.vueindex 6671188b1..3064e38a9 100644--- a/src/components/VMetaSearch/VMetaSourceList.vue+++ b/src/components/VMetaSearch/VMetaSourceList.vue@@ -10,7 +10,7 @@:pressed="a11yProps['aria-expanded']":aria-haspopup="a11yProps['aria-haspopup']"aria-controls="source-list-popover"- variant="tertiary"+ variant="action-menu-bordered"size="disabled"class="caption-regular justify-between py-1 px-3 text-dark-charcoal pe-2">{{ $t('meta-search.button').toString() }}diff --git a/src/components/meta/VButton.stories.mdx b/src/components/meta/VButton.stories.mdxindex 2e0720213..185b0198c 100644--- a/src/components/meta/VButton.stories.mdx+++ b/src/components/meta/VButton.stories.mdx@@ -5,12 +5,8 @@ import {Meta,Story,} from '@storybook/addon-docs'--import VButton, {- buttonForms,- buttonSizes,- buttonVariants,-} from '~/components/VButton.vue'+import { buttonForms, buttonSizes, buttonVariants } from '~/types/button'+import VButton from '~/components/VButton.vue'import { capital } from 'case'<Meta title="Components/VButton" components={VButton} />@@ -41,7 +37,9 @@ export const Template = (args) => ({<Canvas><Storyname="VButton"- args={{}}+ parameters={{+ viewport: { defaultViewport: 'sm' },+ }}argTypes={{as: {options: buttonForms,@@ -65,24 +63,18 @@ export const Template = (args) => ({</Story></Canvas>-## Button variants--export const variants = buttonVariants-export const VariantsTemplate = (args) => ({template: `<div class="flex gap-4 flex-wrap">-<VButton v-for="variant in buttonVariants"+<VButton v-for="variant in args.variants":variant="variant":key="variant"- :v-bind="args">+ class="caption-bold"+ v-bind="args">{{ capitalize(variant) }}</VButton></div>`,components: { VButton },- data: () => ({- buttonVariants,- }),methods: {capitalize(str) {return capital(str)@@ -93,10 +85,69 @@ export const VariantsTemplate = (args) => ({},})+## Button variants++### Primary++The style used for Call-to-action buttons, such as the 'Search' button or 'Get this media item' buttons.+It is a pink button.++<Canvas>+ <Story+ name="primary"+ args={{ variants: ['primary'] }}+ argTypes={{+ pressed: { control: 'boolean' },+ size: {+ options: buttonSizes,+ control: { type: 'radio' },+ },+ disabled: { control: 'boolean' },+ }}+ >+ {VariantsTemplate.bind({})}+ </Story>+</Canvas>++### Secondary++The styles used for other buttons.++There are three variants of secondary buttons: filled, bordered and text (without border).++<Canvas>+ <Story+ name="secondary"+ args={{ variants: ['secondary-bordered', 'secondary-filled', 'secondary'] }}+ argTypes={{+ pressed: { control: 'boolean' },+ size: {+ options: buttonSizes,+ control: { type: 'radio' },+ },+ disabled: { control: 'boolean' },+ }}+ >+ {VariantsTemplate.bind({})}+ </Story>+</Canvas>++### Action-menu++The styles used for header 'action-menu' buttons.++'action-menu' also has no border and no background. On hover, there is a light border. It is used in the desktop header buttons and for the content type switcher inside the searchbar.++'action-menu-bordered' has a border but no background. It is used in the desktop header buttons when the (old) header is scrolled.++'action-menu-muted' has a light charcoal background. It is used for filters when some filters are applied.+<Canvas><Story- name="VButton Variants"- args={{}}+ name="action-menu"+ args={{+ variants: ['action-menu', 'action-menu-bordered', 'action-menu-muted'],+ }}argTypes={{pressed: { control: 'boolean' },size: {diff --git a/src/types/button.ts b/src/types/button.tsnew file mode 100644index 000000000..8e096bf89--- /dev/null+++ b/src/types/button.ts@@ -0,0 +1,29 @@+export const buttonForms = ['VLink', 'button'] as const++export type ButtonForm = typeof buttonForms[number]++export const buttonVariants = [+ 'primary',+ 'secondary',+ 'secondary-bordered',+ 'secondary-filled',+ 'menu',+ 'action-menu',+ 'action-menu-bordered',+ 'action-menu-bordered-pressed',+ 'action-menu-muted',+ 'action-menu-muted-pressed',+ 'plain',+ 'plain--avoid',+ 'full',+] as const+export type ButtonVariant = typeof buttonVariants[number]++export const buttonSizes = ['large', 'medium', 'small', 'disabled'] as const+export type ButtonSize = typeof buttonSizes[number]++export const buttonTypes = ['button', 'submit', 'reset'] as const+export type ButtonType = typeof buttonTypes[number]++export const buttonConnections = ['start', 'end', 'none', 'all'] as const+export type ButtonConnections = typeof buttonConnections[number]diff --git a/tailwind.config.js b/tailwind.config.jsindex c32fdd786..cfa5e21d7 100644--- a/tailwind.config.js+++ b/tailwind.config.js@@ -52,6 +52,7 @@ module.exports = {60: '#837d82',70: '#6e686d',80: '#595258',+ 90: '#453D43',},// Special keywordsdiff --git a/test/playwright/visual-regression/components/content-report-form.spec.ts-snapshots/content-report-focused-linux.png b/test/playwright/visual-regression/components/content-report-form.spec.ts-snapshots/content-report-focused-linux.pngindex f4737a0d1..6c8eaaff0 100644Binary files a/test/playwright/visual-regression/components/content-report-form.spec.ts-snapshots/content-report-focused-linux.png and b/test/playwright/visual-regression/components/content-report-form.spec.ts-snapshots/content-report-focused-linux.png differdiff --git a/test/playwright/visual-regression/components/content-report-form.spec.ts-snapshots/content-report-unfocused-linux.png b/test/playwright/visual-regression/components/content-report-form.spec.ts-snapshots/content-report-unfocused-linux.pngindex f4737a0d1..6c8eaaff0 100644Binary files a/test/playwright/visual-regression/components/content-report-form.spec.ts-snapshots/content-report-unfocused-linux.png and b/test/playwright/visual-regression/components/content-report-form.spec.ts-snapshots/content-report-unfocused-linux.png differdiff --git a/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-all-sources-popover-ltr-linux.png b/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-all-sources-popover-ltr-linux.pngindex 4f7fb6579..606d2aa14 100644Binary files a/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-all-sources-popover-ltr-linux.png and b/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-all-sources-popover-ltr-linux.png differdiff --git a/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-all-sources-popover-rtl-linux.png b/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-all-sources-popover-rtl-linux.pngindex dcf7c7ed6..717cd947e 100644Binary files a/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-all-sources-popover-rtl-linux.png and b/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-all-sources-popover-rtl-linux.png differdiff --git a/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-audio-sources-popover-ltr-linux.png b/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-audio-sources-popover-ltr-linux.pngindex 0002ef6f1..279d9a0d1 100644Binary files a/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-audio-sources-popover-ltr-linux.png and b/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-audio-sources-popover-ltr-linux.png differdiff --git a/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-audio-sources-popover-rtl-linux.png b/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-audio-sources-popover-rtl-linux.pngindex e595ca77d..e9a197141 100644Binary files a/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-audio-sources-popover-rtl-linux.png and b/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-audio-sources-popover-rtl-linux.png differdiff --git a/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-image-sources-popover-ltr-linux.png b/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-image-sources-popover-ltr-linux.pngindex 0504614cd..d124c46cd 100644Binary files a/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-image-sources-popover-ltr-linux.png and b/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-image-sources-popover-ltr-linux.png differdiff --git a/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-image-sources-popover-rtl-linux.png b/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-image-sources-popover-rtl-linux.pngindex 29b5611e6..239229c9d 100644Binary files a/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-image-sources-popover-rtl-linux.png and b/test/playwright/visual-regression/components/external-sources-section.spec.ts-snapshots/external-image-sources-popover-rtl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-2xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-2xl-linux.pngindex f9c9ab7a5..78ef9efe7 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-2xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-lg-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-lg-linux.pngindex e056e2865..31143b5c3 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-lg-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-md-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-md-linux.pngindex 900634908..5b3892768 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-md-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-sm-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-sm-linux.pngdeleted file mode 100644index 59f512f4f..000000000Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-sm-linux.png and /dev/null differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-xl-linux.pngindex 7d3733844..9ff7016e6 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-xs-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-xs-linux.pngdeleted file mode 100644index d23ff7a8b..000000000Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-ltr-xs-linux.png and /dev/null differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-2xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-2xl-linux.pngindex a5989d5fd..10f7179bb 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-2xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-lg-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-lg-linux.pngindex cc7313b5f..26b43bc2c 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-lg-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-md-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-md-linux.pngindex 140cdb7e9..d93f8ac51 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-md-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-sm-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-sm-linux.pngdeleted file mode 100644index a9aad8e24..000000000Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-sm-linux.png and /dev/null differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-xl-linux.pngindex 74d43cd35..14bf7332a 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-xs-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-xs-linux.pngdeleted file mode 100644index 03daa1bbd..000000000Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/filters-open-rtl-xs-linux.png and /dev/null differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-2xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-2xl-linux.pngindex fd928fdeb..359f2c040 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-2xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-lg-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-lg-linux.pngindex 7e07ed9a6..8f1d0eaae 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-lg-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-md-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-md-linux.pngindex dceb7d011..adedd2a5a 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-md-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-sm-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-sm-linux.pngindex 59f512f4f..6227ee550 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-sm-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-sm-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-xl-linux.pngindex 6f1f9a317..9c35104c5 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-xs-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-xs-linux.pngindex d23ff7a8b..ec2e0c707 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-xs-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-ltr-xs-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-2xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-2xl-linux.pngindex 003d63be3..1acda4400 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-2xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-lg-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-lg-linux.pngindex e01afac55..e71441bb0 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-lg-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-md-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-md-linux.pngindex b3a19be00..66e21e4de 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-md-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-sm-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-sm-linux.pngindex a9aad8e24..54238fcf3 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-sm-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-sm-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-xl-linux.pngindex 3ec347652..28e450725 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-xs-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-xs-linux.pngindex 03daa1bbd..f7d44dab1 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-xs-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/resting-rtl-xs-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-2xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-2xl-linux.pngindex 18c30029a..0bd2abcce 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-2xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-lg-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-lg-linux.pngindex dc4db3296..dfb21aed9 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-lg-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-md-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-md-linux.pngindex 0053ce012..f618997e0 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-md-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-sm-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-sm-linux.pngindex 36f1349f9..2b724419d 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-sm-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-sm-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-xl-linux.pngindex 690e2267f..8442d3da9 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-xs-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-xs-linux.pngindex 8c96ca820..feecccb16 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-xs-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-ltr-xs-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-2xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-2xl-linux.pngindex 7158f4c29..77b46c68e 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-2xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-lg-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-lg-linux.pngindex 7662b22d7..89b7dda2f 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-lg-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-md-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-md-linux.pngindex 0e37c354a..17cfd9f7d 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-md-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-sm-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-sm-linux.pngindex da78aae0e..b922c57be 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-sm-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-sm-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-xl-linux.pngindex 96c844807..6a3949084 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-xs-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-xs-linux.pngindex dc1fdba92..3778dc494 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-xs-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/scrolled-rtl-xs-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-2xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-2xl-linux.pngindex fc068c206..bfdf8a417 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-2xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-lg-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-lg-linux.pngindex 290a4efa2..0fd4bba29 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-lg-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-md-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-md-linux.pngindex 18f44cfb2..796bee0a6 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-md-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-sm-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-sm-linux.pngindex 195319702..bc55f68a1 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-sm-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-sm-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-xl-linux.pngindex 4309a7658..6ed44eaa9 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-xs-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-xs-linux.pngindex 4f18756c8..456a72c18 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-xs-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-ltr-xs-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-2xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-2xl-linux.pngindex f4a03dfba..85b7de2b7 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-2xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-lg-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-lg-linux.pngindex 1ab7d0702..ef785dc16 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-lg-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-md-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-md-linux.pngindex c98a555e8..e0f26a5b2 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-md-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-sm-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-sm-linux.pngindex ebeafa5ac..9da1dd459 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-sm-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-sm-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-xl-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-xl-linux.pngindex ceb091bf8..1fb3ea922 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-xl-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-xs-linux.png b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-xs-linux.pngindex b6e7e123f..057f8fbae 100644Binary files a/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-xs-linux.png and b/test/playwright/visual-regression/components/header.spec.ts-snapshots/searchbar-hovered-rtl-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-xs-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-xs-linux.pngindex e270548d9..aab02247b 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-xs-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-xs-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-xs-linux.pngindex ccabe03b8..fd04dbe3e 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-xs-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-xs-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-xs-linux.pngindex 50e828a03..d6ef5e7b9 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-xs-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-2xl-linux.pngindex 12320ec31..34b1cb1d5 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-2xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-lg-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-lg-linux.pngindex b78c6479b..f9ae99af2 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-lg-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-md-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-md-linux.pngindex 1615cc5e5..949732cc0 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-md-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-xl-linux.pngindex 2941c86da..91f015b0b 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-ltr-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-2xl-linux.pngindex 22b473302..67644bc14 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-2xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-lg-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-lg-linux.pngindex f4d468fd2..a50aa3a3f 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-lg-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-md-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-md-linux.pngindex 6e330d46e..bab546817 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-md-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-xl-linux.pngindex 160685be2..6c131843a 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/about-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-2xl-linux.pngindex d5e0b3098..6262ae9ee 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-2xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-lg-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-lg-linux.pngindex 2be030ff0..c11b6b1be 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-lg-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-md-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-md-linux.pngindex 7793461be..9dab90703 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-md-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-xl-linux.pngindex 75f33699d..4d9f263a6 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-ltr-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-2xl-linux.pngindex 57cb6fad2..ba52fc091 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-2xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-lg-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-lg-linux.pngindex 90e17b86b..c66abb618 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-lg-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-md-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-md-linux.pngindex 0c2ff07c3..aa35de100 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-md-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-xl-linux.pngindex 2a9304255..ce267a3ff 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/meta-search-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-2xl-linux.pngindex a37cd6634..e2447e2fe 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-2xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-lg-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-lg-linux.pngindex db5425012..f21a2e869 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-lg-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-md-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-md-linux.pngindex 1343fcad1..aaf580400 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-md-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-xl-linux.pngindex 83dfdf253..105e0e1d4 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-ltr-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-2xl-linux.pngindex 4394c1db5..df72de725 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-2xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-lg-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-lg-linux.pngindex 99e0f3f2a..ff7107bd3 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-lg-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-md-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-md-linux.pngindex d24a404cc..8a35c258a 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-md-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-xl-linux.pngindex d1d0b2c8a..82406f9fd 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/search-help-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-2xl-linux.pngindex 0bd488f3a..5819d5363 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-2xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-lg-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-lg-linux.pngindex 5f1188d1f..a7e63ace7 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-lg-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-md-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-md-linux.pngindex aafb8778f..10bd8c087 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-md-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-sm-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-sm-linux.pngindex 8bc5a0998..c2107972c 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-sm-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xl-linux.pngindex ce0b9a8f0..531fa291c 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xs-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xs-linux.pngindex 633b55952..7b3d14c64 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xs-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-ltr-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-2xl-linux.pngindex 0bd945b77..0fa2ed51b 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-2xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-lg-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-lg-linux.pngindex 997071e3a..90ca02558 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-lg-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-md-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-md-linux.pngindex 250c203c6..3b63b549e 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-md-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-sm-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-sm-linux.pngindex 611f75cd8..db8f00f65 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-sm-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xl-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xl-linux.pngindex ca7bc1c2f..5e451879a 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xl-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xs-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xs-linux.pngindex c67ac4194..ab96a6009 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xs-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/sources-rtl-xs-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts b/test/storybook/visual-regression/v-button.spec.tsnew file mode 100644index 000000000..a46689939--- /dev/null+++ b/test/storybook/visual-regression/v-button.spec.ts@@ -0,0 +1,47 @@+import { expect, test } from '@playwright/test'++import { makeGotoWithArgs } from '~~/test/storybook/utils/args'++import { buttonVariants } from '~/types/button'++const buttonLocator = 'text=Code is Poetry'++test.describe.configure({ mode: 'parallel' })++test.describe('VButton', () => {+ const gotoWithArgs = makeGotoWithArgs('components-vbutton--v-button')+ const nonPressedVariants = buttonVariants.filter(+ (name) => !name.endsWith('pressed')+ )+ for (const variant of nonPressedVariants) {+ test(`${variant} resting`, async ({ page }) => {+ await gotoWithArgs(page, { variant })+ expect(await page.locator(buttonLocator).screenshot()).toMatchSnapshot({+ name: `${variant}-resting.png`,+ })+ })++ test(`${variant} hovered`, async ({ page }) => {+ await gotoWithArgs(page, { variant })+ await page.hover(buttonLocator)+ expect(await page.locator(buttonLocator).screenshot()).toMatchSnapshot({+ name: `${variant}-hovered.png`,+ })+ })++ test(`${variant} pressed`, async ({ page }) => {+ await gotoWithArgs(page, { variant, pressed: true })+ expect(await page.locator(buttonLocator).screenshot()).toMatchSnapshot({+ name: `${variant}-pressed.png`,+ })+ })++ test(`${variant} pressed hovered`, async ({ page }) => {+ await gotoWithArgs(page, { variant })+ await page.hover(buttonLocator)+ expect(await page.locator(buttonLocator).screenshot()).toMatchSnapshot({+ name: `${variant}-pressed-hovered.png`,+ })+ })+ }+})diff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-bordered-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-bordered-hovered-linux.pngnew file mode 100644index 000000000..4b71452c2Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-bordered-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-bordered-pressed-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-bordered-pressed-hovered-linux.pngnew file mode 100644index 000000000..4b71452c2Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-bordered-pressed-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-bordered-pressed-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-bordered-pressed-linux.pngnew file mode 100644index 000000000..d9d41535dBinary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-bordered-pressed-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-bordered-resting-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-bordered-resting-linux.pngnew file mode 100644index 000000000..4b71452c2Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-bordered-resting-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-hovered-linux.pngnew file mode 100644index 000000000..e54d1be69Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-muted-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-muted-hovered-linux.pngnew file mode 100644index 000000000..489ea2390Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-muted-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-muted-pressed-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-muted-pressed-hovered-linux.pngnew file mode 100644index 000000000..489ea2390Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-muted-pressed-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-muted-pressed-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-muted-pressed-linux.pngnew file mode 100644index 000000000..07af57da3Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-muted-pressed-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-muted-resting-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-muted-resting-linux.pngnew file mode 100644index 000000000..10ab15ee1Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-muted-resting-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-pressed-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-pressed-hovered-linux.pngnew file mode 100644index 000000000..e54d1be69Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-pressed-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-pressed-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-pressed-linux.pngnew file mode 100644index 000000000..07af57da3Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-pressed-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-resting-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-resting-linux.pngnew file mode 100644index 000000000..b7a34e6f5Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/action-menu-resting-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/full-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/full-hovered-linux.pngnew file mode 100644index 000000000..36ff49de2Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/full-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/full-pressed-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/full-pressed-hovered-linux.pngnew file mode 100644index 000000000..36ff49de2Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/full-pressed-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/full-pressed-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/full-pressed-linux.pngnew file mode 100644index 000000000..5b17f12edBinary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/full-pressed-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/full-resting-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/full-resting-linux.pngnew file mode 100644index 000000000..5b17f12edBinary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/full-resting-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/menu-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/menu-hovered-linux.pngnew file mode 100644index 000000000..b7a34e6f5Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/menu-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/menu-pressed-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/menu-pressed-hovered-linux.pngnew file mode 100644index 000000000..b7a34e6f5Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/menu-pressed-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/menu-pressed-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/menu-pressed-linux.pngnew file mode 100644index 000000000..07af57da3Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/menu-pressed-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/menu-resting-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/menu-resting-linux.pngnew file mode 100644index 000000000..b7a34e6f5Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/menu-resting-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain--avoid-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain--avoid-hovered-linux.pngnew file mode 100644index 000000000..57fa4f60fBinary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain--avoid-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain--avoid-pressed-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain--avoid-pressed-hovered-linux.pngnew file mode 100644index 000000000..57fa4f60fBinary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain--avoid-pressed-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain--avoid-pressed-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain--avoid-pressed-linux.pngnew file mode 100644index 000000000..57fa4f60fBinary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain--avoid-pressed-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain--avoid-resting-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain--avoid-resting-linux.pngnew file mode 100644index 000000000..57fa4f60fBinary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain--avoid-resting-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain-hovered-linux.pngnew file mode 100644index 000000000..b7a34e6f5Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain-pressed-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain-pressed-hovered-linux.pngnew file mode 100644index 000000000..b7a34e6f5Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain-pressed-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain-pressed-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain-pressed-linux.pngnew file mode 100644index 000000000..b7a34e6f5Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain-pressed-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain-resting-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain-resting-linux.pngnew file mode 100644index 000000000..b7a34e6f5Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/plain-resting-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/primary-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/primary-hovered-linux.pngnew file mode 100644index 000000000..1f42bec4fBinary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/primary-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/primary-pressed-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/primary-pressed-hovered-linux.pngnew file mode 100644index 000000000..1f42bec4fBinary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/primary-pressed-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/primary-pressed-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/primary-pressed-linux.pngnew file mode 100644index 000000000..1f42bec4fBinary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/primary-pressed-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/primary-resting-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/primary-resting-linux.pngnew file mode 100644index 000000000..e6e0046f8Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/primary-resting-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-bordered-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-bordered-hovered-linux.pngnew file mode 100644index 000000000..e31e59ba1Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-bordered-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-bordered-pressed-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-bordered-pressed-hovered-linux.pngnew file mode 100644index 000000000..e31e59ba1Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-bordered-pressed-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-bordered-pressed-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-bordered-pressed-linux.pngnew file mode 100644index 000000000..d9d41535dBinary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-bordered-pressed-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-bordered-resting-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-bordered-resting-linux.pngnew file mode 100644index 000000000..c5e2746b9Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-bordered-resting-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-filled-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-filled-hovered-linux.pngnew file mode 100644index 000000000..3f5fec0a1Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-filled-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-filled-pressed-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-filled-pressed-hovered-linux.pngnew file mode 100644index 000000000..3f5fec0a1Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-filled-pressed-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-filled-pressed-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-filled-pressed-linux.pngnew file mode 100644index 000000000..07af57da3Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-filled-pressed-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-filled-resting-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-filled-resting-linux.pngnew file mode 100644index 000000000..07af57da3Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-filled-resting-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-hovered-linux.pngnew file mode 100644index 000000000..07af57da3Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-pressed-hovered-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-pressed-hovered-linux.pngnew file mode 100644index 000000000..07af57da3Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-pressed-hovered-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-pressed-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-pressed-linux.pngnew file mode 100644index 000000000..07af57da3Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-pressed-linux.png differdiff --git a/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-resting-linux.png b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-resting-linux.pngnew file mode 100644index 000000000..b7a34e6f5Binary files /dev/null and b/test/storybook/visual-regression/v-button.spec.ts-snapshots/secondary-resting-linux.png differdiff --git a/tsconfig.json b/tsconfig.jsonindex da0171617..b2c889395 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -72,6 +72,9 @@"src/components/VAllResultsGrid/VAudioCell.vue","src/components/VAllResultsGrid/VImageCellSquare.vue","src/components/VContentReport/VReportDescForm.vue",+ "src/components/VContentSwitcher/VSearchTypeButton.vue",+ "src/components/VContentSwitcher/VSearchTypeRadio.vue",+ "src/components/VContentSwitcherOld/VSearchTypeButton.vue","src/components/VErrorSection/VErrorImage.vue","src/components/VFilters/VLicenseExplanation.vue","src/components/VHeader/VFilterButton.vue",