Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Add homepage content switcher (#2087)
Olga Bulat7da02a74d92c
diff --git a/src/components/VContentSwitcher/VSearchTypePopover.vue b/src/components/VContentSwitcher/VSearchTypePopover.vueindex 62ff45de9..2ecef3d61 100644--- a/src/components/VContentSwitcher/VSearchTypePopover.vue+++ b/src/components/VContentSwitcher/VSearchTypePopover.vue@@ -3,10 +3,12 @@ref="contentMenuPopover":label="$t('search-type.label').toString()"placement="bottom-end"+ width="w-66":clippable="true"><template #trigger="{ a11yProps }"><VSearchTypeButton+ id="search-type-button"v-bind="{ ...a11yProps, ...searchTypeProps }":show-label="showLabel"aria-controls="content-switcher-popover"@@ -14,7 +16,6 @@</template><VSearchTypesid="content-switcher-popover"- class="w-[260px] pt-2"size="small":use-links="placement === 'header'"@select="handleSelect"diff --git a/src/components/VContentSwitcher/VSearchTypes.vue b/src/components/VContentSwitcher/VSearchTypes.vueindex d9a9a9459..354d556ec 100644--- a/src/components/VContentSwitcher/VSearchTypes.vue+++ b/src/components/VContentSwitcher/VSearchTypes.vue@@ -4,24 +4,22 @@:size="size":bordered="bordered"type="radiogroup"- class="z-10"- :class="{ 'w-[260px]': size === 'small' }"+ :class="{ 'w-66': size === 'small' }"><divv-for="(category, index) in contentTypeGroups":key="index"class="flex flex-col":class="{- 'mt-2': index > 0,'border-t border-dark-charcoal-20 bg-dark-charcoal-06':index > 0 && !bordered,- 'gap-1': size === 'small',+ 'w-66 gap-1 py-2': size === 'small',}"><h4v-if="index !== 0":class="bordered ? 'ps-0' : 'ps-6'"- class="category pt-6 pb-4 uppercase pe-6"+ class="category pt-6 pb-4">{{ $t(`search-type.${category.heading}`) }}</h4>@@ -33,12 +31,6 @@:size="size":icon="content.icons[item]":use-links="useLinks"- :class="{- 'mb-2':- idx === category.items.length - 1 &&- ((contentTypeGroups.length > 1 && index !== 0) ||- contentTypeGroups.length === 1),- }":selected="isActive(item)"@click="selectItem(item)"/>diff --git a/src/components/VContentSwitcherOld/VMobileMenuModal.vue b/src/components/VContentSwitcherOld/VMobileMenuModal.vueindex 0628d5800..8a36088af 100644--- a/src/components/VContentSwitcherOld/VMobileMenuModal.vue+++ b/src/components/VContentSwitcherOld/VMobileMenuModal.vue@@ -20,7 +20,7 @@><VSearchTypesOldref="searchTypesRef"- size="small"+ size="medium":active-item="content.activeType.value":use-links="true"@select="selectItem"diff --git a/src/components/VContentSwitcherOld/VSearchTypePopoverOld.vue b/src/components/VContentSwitcherOld/VSearchTypePopoverOld.vueindex 1cc9f822c..be8092c5d 100644--- a/src/components/VContentSwitcherOld/VSearchTypePopoverOld.vue+++ b/src/components/VContentSwitcherOld/VSearchTypePopoverOld.vue@@ -4,6 +4,7 @@class="flex items-stretch":label="$t('search-type.label').toString()"placement="bottom-end"+ width="w-66":clippable="true"><template #trigger="{ a11yProps }">@@ -16,7 +17,7 @@</template><VSearchTypesOldid="content-switcher-popover"- size="medium"+ size="small":active-item="activeItem":use-links="placement === 'header'"@select="selectItem"diff --git a/src/components/VContentSwitcherOld/VSearchTypesOld.vue b/src/components/VContentSwitcherOld/VSearchTypesOld.vueindex 1137fc1aa..1ae8d7c8a 100644--- a/src/components/VContentSwitcherOld/VSearchTypesOld.vue+++ b/src/components/VContentSwitcherOld/VSearchTypesOld.vue@@ -4,7 +4,7 @@:size="size":bordered="bordered"type="radiogroup"- class="z-10 max-w-full md:w-[260px]"+ :class="{ 'w-66 pt-2': size === 'small' }"><divv-for="(category, index) in contentTypeGroups"@@ -13,18 +13,19 @@'mt-2': index > 0,'border-t border-dark-charcoal-20 bg-dark-charcoal-06':index > 0 && !bordered,+ 'w-66': size === 'small',}"><h4:class="bordered ? 'ps-0' : 'ps-6'"- class="pt-6 pb-4 text-sr font-semibold uppercase pe-6"+ class="category pt-6 pb-4 text-sr">{{ $t(`search-type.${category.heading}`) }}</h4><VSearchTypeItemOldv-for="(item, idx) in category.items":key="item"- class="md:mb-1"+ :class="{ 'mb-1': size === 'small' }":item="item":item-id="idx":icon="content.icons[item]"@@ -50,8 +51,8 @@ export default defineComponent({components: { VItemGroup, VSearchTypeItemOld },props: {/**- * 'Small' size for mobile screens,- * 'medium' size for larger screens.+ * 'Small' size for popovers on larger screens,+ * 'medium' size for modals on mobile screens.*/size: {type: String as PropType<"small" | "medium">,@@ -90,7 +91,7 @@ export default defineComponent({return base})- const bordered = computed(() => props.size === "small")+ const bordered = computed(() => props.size === "medium")const handleClick = (item) => {emit("select", item)}diff --git a/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue b/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vueindex 0ce4e3a47..074aa9dba 100644--- a/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue+++ b/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue@@ -4,7 +4,7 @@:hide-on-click-outside="true":hide="close":visible="visible"- variant="two-thirds"+ :variant="showFilters ? 'two-thirds' : 'fit-content'"class="flex items-center"><VTabs@@ -16,10 +16,21 @@@change="changeSelectedTab"><template #tabs>- <VTab id="content-settings" size="medium" class="category me-4">{{- $t("search-type.heading")- }}</VTab>- <VTab id="filters" size="medium" class="category">{{+ <VTab+ v-if="showFilters"+ id="content-settings"+ size="medium"+ class="category me-4"+ >{{ $t("search-type.heading") }}</VTab+ >+ <h2+ v-else+ class="label-regular relative my-2 flex h-12 items-center gap-x-2 px-2 me-4 after:absolute after:right-1/2 after:bottom-[-0.625rem] after:h-0.5 after:w-full after:translate-x-1/2 after:translate-y-[-50%] after:bg-dark-charcoal"+ >+ <VIcon :icon-path="searchType.icon" />+ {{ $t("search-type.heading") }}+ </h2>+ <VTab v-if="showFilters" id="filters" size="medium" class="category">{{$t("filters.title")}}</VTab><VIconButton@@ -30,9 +41,13 @@/></template><VTabPanel id="content-settings">- <VSearchTypes size="medium" :use-links="true" />+ <VSearchTypes+ size="medium"+ :use-links="useLinks"+ @select="$emit('select', $event)"+ /></VTabPanel>- <VTabPanel id="filters">+ <VTabPanel v-if="showFilters" id="filters"><VSearchGridFilter:show-filter-header="false":change-tab-order="false"@@ -40,6 +55,7 @@</VTabPanel></VTabs><footer+ v-if="showFilters"class="mt-auto flex h-20 flex-shrink-0 items-center justify-between border-t border-t-dark-charcoal-20 px-6 py-4"><VButton@@ -59,10 +75,12 @@ import { computed, defineComponent, ref } from "@nuxtjs/composition-api"import { useSearchStore } from "~/stores/search"import { useI18n } from "~/composables/use-i18n"+import useSearchType from "~/composables/use-search-type"import VButton from "~/components/VButton.vue"-import VModalContent from "~/components/VModal/VModalContent.vue"+import VIcon from "~/components/VIcon/VIcon.vue"import VIconButton from "~/components/VIconButton/VIconButton.vue"+import VModalContent from "~/components/VModal/VModalContent.vue"import VSearchGridFilter from "~/components/VFilters/VSearchGridFilter.vue"import VSearchTypes from "~/components/VContentSwitcher/VSearchTypes.vue"import VShowResultsButton from "~/components/VHeader/VHeaderMobile/VShowResultsButton.vue"@@ -75,6 +93,7 @@ import closeIcon from "~/assets/icons/close-small.svg"export default defineComponent({name: "VContentSettingsModalContent",components: {+ VIcon,VModalContent,VButton,VIconButton,@@ -98,10 +117,20 @@ export default defineComponent({type: Boolean,default: false,},+ showFilters: {+ type: Boolean,+ default: true,+ },+ useLinks: {+ type: Boolean,+ default: true,+ },},- setup() {+ setup(props) {const i18n = useI18n()+const searchStore = useSearchStore()+ const content = useSearchType()const selectedTab = ref<"content-settings" | "filters">("content-settings")const changeSelectedTab = (tab: "content-settings" | "filters") => {selectedTab.value = tab@@ -110,7 +139,7 @@ export default defineComponent({const areFiltersSelected = computed(() => searchStore.isAnyFilterApplied)const showClearFiltersButton = computed(- () => selectedTab.value === "filters"+ () => props.showFilters && selectedTab.value === "filters")const isClearButtonDisabled = computed(() => !searchStore.isAnyFilterApplied@@ -118,16 +147,21 @@ export default defineComponent({const appliedFilterCount = computed(() => searchStore.appliedFilterCount)const clearFiltersLabel = computed(() =>searchStore.isAnyFilterApplied- ? i18n.tc("filter-list.clear-numbered", appliedFilterCount.value)+ ? i18n.t("filter-list.clear-numbered", {+ number: appliedFilterCount.value,+ }): i18n.t("filter-list.clear"))+ const searchType = computed(() => content.getSearchTypeProps())+const clearFilters = () => {searchStore.clearFilters()}return {closeIcon,+ searchType,selectedTab,changeSelectedTab,diff --git a/src/components/VHeader/VSearchBar/VStandaloneSearchBar.vue b/src/components/VHeader/VSearchBar/VStandaloneSearchBar.vueindex 3f249f4c4..877503ae7 100644--- a/src/components/VHeader/VSearchBar/VStandaloneSearchBar.vue+++ b/src/components/VHeader/VSearchBar/VStandaloneSearchBar.vue@@ -4,8 +4,11 @@@submit.prevent="handleSearch"><div- class="input-field search-field group flex h-full flex-grow items-center overflow-hidden rounded-sm border p-0.5px pe-1.5px rounded-e-none border-e-0 focus-within:border-1.5 focus-within:border-pink focus-within:bg-dark-charcoal-06 focus-within:p-0 focus-within:pe-1.5px group-hover:bg-dark-charcoal-06"- :class="[isHomeRoute ? 'border-tx' : 'border-black']"+ class="input-field search-field group flex h-full flex-grow items-center overflow-hidden rounded-sm border p-0.5px pe-2 rounded-e-none border-e-0 focus-within:border-1.5 focus-within:p-0 focus-within:pe-2 focus-within:border-e-0"+ :class="[+ isHomeRoute ? 'border-tx' : 'border-black',+ hasPopover ? 'focus-within:border-tx' : 'focus-within:border-pink',+ ]"><inputid="search-bar"@@ -36,7 +39,7 @@:variant="isHomeRoute ? 'primary' : 'plain'"class="h-full w-14 flex-shrink-0 transition-none rounded-s-none sm:w-16":class="{- 'search-button border-black p-0.5px ps-1.5px hover:bg-pink hover:text-white focus:border-tx focus-visible:bg-pink focus-visible:text-white group-focus-within:border-pink group-focus-within:border-tx group-focus-within:bg-pink group-focus-within:text-white group-focus-within:hover:bg-dark-pink group-hover:border-pink group-hover:border-tx group-hover:bg-pink group-hover:text-white group-focus:border-tx':+ 'search-button border-black p-0.5px ps-1.5px hover:bg-pink hover:text-white focus:border-tx focus-visible:bg-pink focus-visible:text-white group-focus-within:border-tx group-focus-within:bg-pink group-focus-within:text-white group-focus-within:hover:bg-dark-pink group-hover:border-tx group-hover:bg-pink group-hover:text-white group-focus:border-tx':!isHomeRoute,}">@@ -75,6 +78,13 @@ export default defineComponent({type: String as PropType<"home" | "404">,default: "home",},+ /**+ * Search bar should not have a focus box when a popover is open.+ */+ hasPopover: {+ type: Boolean,+ default: false,+ },},emits: {submit: defineEvent<[string]>(),diff --git a/src/components/VHeader/meta/VContentSettingsModal.stories.mdx b/src/components/VHeader/meta/VContentSettingsModal.stories.mdxindex 4448a691f..b9347df0b 100644--- a/src/components/VHeader/meta/VContentSettingsModal.stories.mdx+++ b/src/components/VHeader/meta/VContentSettingsModal.stories.mdx@@ -32,11 +32,11 @@ export const Template = (args) => ({},})-# VContentSettingsModal+# VContentSettingsModalContent-<Description of={VContentSettingsModal} />+<Description of={VContentSettingsModalContent} />-<ArgsTable of={VContentSettingsModal} />+<ArgsTable of={VContentSettingsModalContent} /><Canvas><Story height="480px" name="Default">diff --git a/src/components/VHomepageContent.vue b/src/components/VHomepageContent.vueindex 528c78b56..5982ff78b 100644--- a/src/components/VHomepageContent.vue+++ b/src/components/VHomepageContent.vue@@ -1,5 +1,5 @@<template>- <div>+ <div ref="nodeRef"><h2class="mt-auto mb-2 text-[40px] font-light leading-tight lg:text-[63px]">@@ -10,14 +10,49 @@{{ $t("hero.description") }}</p>- <VStandaloneSearchBar class="mt-4 md:mt-6" @submit="handleSearch">- <VSearchTypePopover- class="mx-3 group-focus-within:bg-white group-hover:bg-white"- :active-item="searchType"- placement="searchbar"+ <VStandaloneSearchBar+ ref="searchBarRef"+ class="mt-4 md:mt-6"+ :has-popover="triggerElement && isContentSwitcherVisible"+ @submit="handleSearch"+ >+ <VSearchTypeButton+ id="search-type-button"+ ref="searchTypeButtonRef"+ class="ms-2"+ v-bind="{ ...triggerA11yProps, ...searchTypeProps }":show-label="isSm"- @select="setSearchType"+ aria-controls="content-switcher-popover"+ @click="onTriggerClick"/>+ <template v-if="triggerElement">+ <VPopoverContent+ v-if="isLg"+ z-index="popover"+ :hide="closeContentSwitcher"+ :visible="isContentSwitcherVisible"+ :trigger-element="triggerElement"+ width="w-66"+ aria-labelledby="search-type-button"+ >+ <VSearchTypes+ size="small"+ :use-links="false"+ @select="handleSelect"+ />+ </VPopoverContent>++ <VContentSettingsModalContent+ v-else+ aria-labelledby="search-type-button"+ :close="closeContentSwitcher"+ :visible="isContentSwitcherVisible"+ :use-links="false"+ :show-filters="false"+ @open="openContentSwitcher"+ @select="handleSelect"+ />+ </template></VStandaloneSearchBar><!-- Disclaimer for large screens -->@@ -34,17 +69,33 @@</div></template><script lang="ts">+import { computed, ref, PropType } from "@nuxtjs/composition-api"+import type { SearchType } from "~/constants/media"+import { ensureFocus } from "~/utils/reakit-utils/focus"++import useSearchType from "~/composables/use-search-type"+import { useDialogControl } from "~/composables/use-dialog-control"+import { useUiStore } from "~/stores/ui"++import VContentSettingsModalContent from "~/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue"import VLink from "~/components/VLink.vue"+import VPopoverContent from "~/components/VPopover/VPopoverContent.vue"+import VSearchTypeButton from "~/components/VContentSwitcher/VSearchTypeButton.vue"+import VSearchTypes from "~/components/VContentSwitcher/VSearchTypes.vue"import VStandaloneSearchBar from "~/components/VHeader/VSearchBar/VStandaloneSearchBar.vue"-import VSearchTypePopover from "~/components/VContentSwitcher/VSearchTypePopover.vue"--import type { PropType } from "@nuxtjs/composition-api"export default {name: "VHomepageContent",- components: { VSearchTypePopover, VStandaloneSearchBar, VLink },+ components: {+ VContentSettingsModalContent,+ VSearchTypes,+ VPopoverContent,+ VSearchTypeButton,+ VStandaloneSearchBar,+ VLink,+ },props: {handleSearch: {type: Function as PropType<(query: string) => void>,@@ -58,10 +109,76 @@ export default {type: Function as PropType<(searchType: SearchType) => void>,required: true,},- isSm: {- type: Boolean,- required: true,- },+ },+ setup(props, { emit }) {+ const nodeRef = ref<HTMLElement | null>(null)+ const searchTypeButtonRef = ref<InstanceType<+ typeof VSearchTypeButton+ > | null>(null)+ const searchBarRef = ref<InstanceType<typeof VStandaloneSearchBar> | null>(+ null+ )++ const { getSearchTypeProps } = useSearchType()+ const uiStore = useUiStore()++ const searchTypeProps = computed(() => getSearchTypeProps())++ const isContentSwitcherVisible = ref(false)++ const isSm = computed(() => uiStore.isBreakpoint("sm"))+ const isLg = computed(() => uiStore.isBreakpoint("lg"))++ const triggerElement = computed(+ () => (searchTypeButtonRef.value?.$el as HTMLElement) || null+ )++ const lockBodyScroll = computed(() => !isLg.value)++ /**+ * When a search type is selected, we close the popover or modal,+ * and focus the search input.+ *+ * @param searchType+ */+ const handleSelect = (searchType: SearchType) => {+ props.setSearchType(searchType)+ const searchInput = searchBarRef.value?.$el.getElementsByTagName("input")+ if (searchInput) {+ ensureFocus(searchInput[0])+ }+ closeContentSwitcher()+ }++ const {+ close: closeContentSwitcher,+ open: openContentSwitcher,+ onTriggerClick,+ triggerA11yProps,+ } = useDialogControl({+ visibleRef: isContentSwitcherVisible,+ nodeRef,+ lockBodyScroll,+ emit,+ })++ return {+ nodeRef,+ searchTypeButtonRef,+ searchBarRef,++ isLg,+ isSm,++ triggerElement,+ onTriggerClick,+ handleSelect,+ searchTypeProps,+ closeContentSwitcher,+ openContentSwitcher,+ isContentSwitcherVisible,+ triggerA11yProps,+ }},}</script>diff --git a/src/components/VItemGroup/VItem.vue b/src/components/VItemGroup/VItem.vueindex 9ac73300e..59d1968c4 100644--- a/src/components/VItemGroup/VItem.vue+++ b/src/components/VItemGroup/VItem.vue@@ -18,7 +18,7 @@<VButtondata-item-group-item:as="as"- class="group relative flex min-w-full justify-between py-2 hover:bg-dark-charcoal-10 focus:z-10"+ class="group relative flex min-w-full justify-between border-0 py-2 hover:bg-dark-charcoal-10 focus:z-10":class="[$style[`${contextProps.direction}-button`],$style[`${contextProps.size}-button`],@@ -54,8 +54,8 @@contextProps.direction === 'vertical' &&contextProps.showCheck"- class="absolute end-2"- :class="contextProps.size === 'small' ? 'end-3' : 'end-6'"+ class="absolute"+ :class="contextProps.size === 'small' ? 'end-3' : 'end-5'":icon-path="itemIndicator"/></VButton>@@ -205,10 +205,6 @@ export default defineComponent({@apply flex flex-row items-center;}-.has-check .vertical-content {- @apply pe-8;-}-.vertical-popover-item {@apply pb-0;}@@ -248,6 +244,6 @@ export default defineComponent({@apply p-3;}.medium-button {- @apply px-6 py-5;+ @apply p-5 ps-6;}</style>diff --git a/src/components/VModal/VModalContent.vue b/src/components/VModal/VModalContent.vueindex 235b59ee5..06feda228 100644--- a/src/components/VModal/VModalContent.vue+++ b/src/components/VModal/VModalContent.vue@@ -192,6 +192,7 @@ export default defineComponent({.top-bar-two-thirds {@apply bg-tx;}+.modal-backdrop-fit-content,.modal-backdrop-two-thirds {@apply bg-dark-charcoal bg-opacity-75;}@@ -208,15 +209,21 @@ export default defineComponent({.modal-content-default {@apply text-left align-bottom md:rounded-t-md;}-.modal-content-full {- @apply flex w-full flex-col justify-between px-6 pb-10;-}.modal-two-thirds {@apply mt-auto h-2/3 w-full rounded-t-lg bg-white;}+.modal-fit-content {+ @apply mt-auto w-full rounded-t-lg bg-white;+}+.modal-content-full {+ @apply flex w-full flex-col justify-between px-6 pb-10;+}.modal-content-two-thirds {@apply overflow-y-hidden rounded-t-md;}+.modal-content-fit-content {+ @apply rounded-t-md;+}.modal-content-dark {@apply bg-black text-white;}diff --git a/src/components/VPopover/VPopover.vue b/src/components/VPopover/VPopover.vueindex 5bab9b8a9..29ec8628b 100644--- a/src/components/VPopover/VPopover.vue+++ b/src/components/VPopover/VPopover.vue@@ -21,6 +21,7 @@<VPopoverContentv-if="triggerRef":z-index="zIndex"+ :width="width":visible="visibleRef":trigger-element="triggerRef":placement="placement"@@ -140,8 +141,16 @@ export default defineComponent({/*** Whether the popover height should be clipped and made scrollable* if the window height is too small.+ *+ * @default false*/clippable: { type: Boolean, default: false },+ /**+ * Optional Tailwind class for fixed width popover content.+ *+ * @default undefined+ */+ width: { type: String },},emits: [/**diff --git a/src/components/VPopover/VPopoverContent.vue b/src/components/VPopover/VPopoverContent.vueindex 6a6fffb2c..5101089ec 100644--- a/src/components/VPopover/VPopoverContent.vue+++ b/src/components/VPopover/VPopoverContent.vue@@ -8,8 +8,8 @@><divref="popoverRef"- class="popover-content max-w-max overflow-y-auto overflow-x-hidden rounded-sm border border-light-gray bg-white shadow"- :class="`z-${zIndex}`"+ class="popover-content overflow-y-auto overflow-x-hidden rounded-sm border border-light-gray bg-white shadow"+ :class="[`z-${zIndex}`, width]":style="heightProperties":tabindex="-1"@blur="onBlur"@@ -92,6 +92,12 @@ export default defineComponent({type: Boolean,default: false,},+ /**+ * Optional Tailwind class for fixed width.+ */+ width: {+ type: String,+ },},/*** This is the only documented emitted event but in reality we pass through `$listeners`diff --git a/src/types/modal.ts b/src/types/modal.tsindex 036938d1a..bff3069e4 100644--- a/src/types/modal.ts+++ b/src/types/modal.ts@@ -1,6 +1,6 @@import type { Ref } from "@nuxtjs/composition-api"-export type ModalVariant = "default" | "full" | "two-thirds"+export type ModalVariant = "default" | "full" | "two-thirds" | "fit-content"export type ModalColorMode = "dark" | "light"export type DialogOptions = {diff --git a/tailwind.config.js b/tailwind.config.jsindex 9dad076d6..a93020537 100644--- a/tailwind.config.js+++ b/tailwind.config.js@@ -93,6 +93,7 @@ module.exports = {40: "10.00rem",50: "12.50rem",64: "16.00rem",+ 66: "16.25rem",70: "17.50rem",80: "20.00rem",120: "30.00rem",diff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts b/test/playwright/visual-regression/pages/homepage-old.spec.tsindex 4fb88d4c0..77dcde52f 100644--- a/test/playwright/visual-regression/pages/homepage-old.spec.ts+++ b/test/playwright/visual-regression/pages/homepage-old.spec.ts@@ -25,16 +25,26 @@ for (const dir of languageDirections) {test.beforeEach(async ({ page }) => {await page.goto(path)await dismissTranslationBanner(page)+ await deleteImageCarousel(page)})breakpoints.describeEvery(({ expectSnapshot }) =>test(`${dir} full page old design`, async ({ page }) => {- await deleteImageCarousel(page)await expectSnapshot(`index-${dir}`, page)}))test.describe("search input", () => {+ breakpoints.describeEachDesktopWithMd(({ expectSnapshot }) => {+ test("content switcher open", async ({ page }) => {+ await page+ .locator("[aria-controls='content-switcher-popover']")+ .click()++ await expectSnapshot(`content-switcher-open-${dir}`, page)+ })+ })+breakpoints.describeEvery(({ expectSnapshot }) => {test("unfocused", async ({ page }) => {await expectSnapshot(diff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-2xl-linux.pngnew file mode 100644index 000000000..e094c57e1Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-lg-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-lg-linux.pngnew file mode 100644index 000000000..0e5b7c12bBinary files /dev/null and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-md-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-md-linux.pngnew file mode 100644index 000000000..3717d5c95Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-xl-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-xl-linux.pngnew file mode 100644index 000000000..d6ffc1bc2Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-ltr-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-rtl-2xl-linux.pngnew file mode 100644index 000000000..4606cf536Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-rtl-lg-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-rtl-lg-linux.pngnew file mode 100644index 000000000..50c174d44Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-rtl-md-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-rtl-md-linux.pngnew file mode 100644index 000000000..28e650f6aBinary files /dev/null and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-rtl-xl-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-rtl-xl-linux.pngnew file mode 100644index 000000000..58ab61c31Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/content-switcher-open-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-ltr-lg-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-ltr-lg-linux.pngindex 588247a32..ca390967d 100644Binary files a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-ltr-lg-linux.png and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-ltr-xs-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-ltr-xs-linux.pngindex 40b3682e3..40ac06e6d 100644Binary files a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-ltr-xs-linux.png and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-ltr-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-rtl-2xl-linux.pngindex b8e410a60..ed2ab71b9 100644Binary files a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-rtl-2xl-linux.png and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-rtl-lg-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-rtl-lg-linux.pngindex f0a67e45b..ed2ab71b9 100644Binary files a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-rtl-lg-linux.png and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-rtl-xs-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-rtl-xs-linux.pngindex 825d6d810..0bbc7f80d 100644Binary files a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-rtl-xs-linux.png and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/focused-search-rtl-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-ltr-lg-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-ltr-lg-linux.pngindex 099811936..e910eed54 100644Binary files a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-ltr-lg-linux.png and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-ltr-xs-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-ltr-xs-linux.pngindex eed6babff..5cfcb3434 100644Binary files a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-ltr-xs-linux.png and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-ltr-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-rtl-2xl-linux.pngindex 7ecb24a16..9b9507713 100644Binary files a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-rtl-2xl-linux.png and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-rtl-lg-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-rtl-lg-linux.pngindex 2e092e832..9b9507713 100644Binary files a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-rtl-lg-linux.png and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-rtl-xs-linux.png b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-rtl-xs-linux.pngindex 22f6636d5..e36d2157c 100644Binary files a/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-rtl-xs-linux.png and b/test/playwright/visual-regression/pages/homepage-old.spec.ts-snapshots/unfocused-search-rtl-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts b/test/playwright/visual-regression/pages/homepage.spec.tsindex 28b90e7c6..82f745125 100644--- a/test/playwright/visual-regression/pages/homepage.spec.ts+++ b/test/playwright/visual-regression/pages/homepage.spec.ts@@ -55,6 +55,26 @@ for (const dir of languageDirections) {page.locator("form:has(input)"))})++ test("content switcher open", async ({ page }) => {+ await page.locator("#search-type-button").click()++ await expectSnapshot(`content-switcher-open-${dir}`, page)+ })++ test("content switcher with external sources open", async ({+ page,+ }) => {+ await page.goto(pathWithDir("/?ff_external_sources=on", dir))+ await cleanImageCarousel(page)++ await page.locator("#search-type-button").click()++ await expectSnapshot(+ `content-switcher-with-external-sources-open-${dir}`,+ page+ )+ })})})})diff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-2xl-linux.pngnew file mode 100644index 000000000..41cfde271Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-lg-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-lg-linux.pngnew file mode 100644index 000000000..22599d371Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-md-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-md-linux.pngnew file mode 100644index 000000000..7de8abb2eBinary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-sm-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-sm-linux.pngnew file mode 100644index 000000000..9c7f96a94Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-xl-linux.pngnew file mode 100644index 000000000..aa17e701aBinary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-xs-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-xs-linux.pngnew file mode 100644index 000000000..67a7e362aBinary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-ltr-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-2xl-linux.pngnew file mode 100644index 000000000..c7c03a860Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-lg-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-lg-linux.pngnew file mode 100644index 000000000..eb2ee80deBinary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-md-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-md-linux.pngnew file mode 100644index 000000000..482fa4e5aBinary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-sm-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-sm-linux.pngnew file mode 100644index 000000000..bd9af9819Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-xl-linux.pngnew file mode 100644index 000000000..817e1194aBinary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-xs-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-xs-linux.pngnew file mode 100644index 000000000..f18969f31Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-open-rtl-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-2xl-linux.pngnew file mode 100644index 000000000..71ca78537Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-lg-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-lg-linux.pngnew file mode 100644index 000000000..b595bc2abBinary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-md-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-md-linux.pngnew file mode 100644index 000000000..22e912315Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-sm-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-sm-linux.pngnew file mode 100644index 000000000..4d85e5535Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-xl-linux.pngnew file mode 100644index 000000000..48f3cd254Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-xs-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-xs-linux.pngnew file mode 100644index 000000000..051c8c657Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-ltr-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-2xl-linux.pngnew file mode 100644index 000000000..9153b80c1Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-lg-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-lg-linux.pngnew file mode 100644index 000000000..e9bb56fb9Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-md-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-md-linux.pngnew file mode 100644index 000000000..c3908c874Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-sm-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-sm-linux.pngnew file mode 100644index 000000000..ab64729abBinary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-xl-linux.pngnew file mode 100644index 000000000..35ad60082Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-xs-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-xs-linux.pngnew file mode 100644index 000000000..5bd7836e6Binary files /dev/null and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/content-switcher-with-external-sources-open-rtl-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-2xl-linux.pngindex 26b2b825b..25df12789 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-2xl-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-lg-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-lg-linux.pngindex 3c1129a50..690142842 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-lg-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-md-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-md-linux.pngindex d299ae23f..71ee1eaed 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-md-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-sm-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-sm-linux.pngindex 4c57945d6..734d3f9b7 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-sm-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-xl-linux.pngindex e2f9def8e..403b29a79 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-xl-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-ltr-xl-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 8dee93ba6..8c6d8ac09 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-2xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-2xl-linux.pngindex 80b3b0dcd..b5740fbee 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-2xl-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-lg-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-lg-linux.pngindex a642f9e3d..9f650cdfc 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-lg-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-md-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-md-linux.pngindex e47421c2f..df95684aa 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-md-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-sm-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-sm-linux.pngindex acf4bd4d7..329864fbb 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-sm-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-xl-linux.pngindex 2f1a9969e..dece24e6f 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-xl-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/focused-search-rtl-xl-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 28f37f354..aa602862b 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/index-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-2xl-linux.pngindex 8f46ce8ad..193a5245d 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-2xl-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-lg-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-lg-linux.pngindex f0ba8372b..ca9bf24cf 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-lg-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-md-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-md-linux.pngindex 644408c45..ad828fdbf 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-md-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-sm-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-sm-linux.pngindex 331a3bc36..c72002825 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-sm-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-xl-linux.pngindex e9724b36d..db4173fe8 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-xl-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-xs-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-xs-linux.pngindex 1bce8af98..0b1e8b30c 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-xs-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-ltr-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-2xl-linux.pngindex 612cf7058..4c71ed92c 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-2xl-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-lg-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-lg-linux.pngindex e057ed30b..4d543a2d1 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-lg-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-md-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-md-linux.pngindex cb4cfc2cf..78cbf8ea0 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-md-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-sm-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-sm-linux.pngindex 657584d56..2bd757828 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-sm-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-xl-linux.pngindex 47a5a9bd4..fb2179ac7 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-xl-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-xs-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-xs-linux.pngindex f6a34328e..47acc3812 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-xs-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/index-rtl-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-2xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-2xl-linux.pngindex 237dceddf..500990bf9 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-2xl-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-lg-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-lg-linux.pngindex 55b988ace..3ab5ac1bf 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-lg-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-md-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-md-linux.pngindex 04d9da34d..510d50664 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-md-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-sm-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-sm-linux.pngindex 9840dd48c..335af95cb 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-sm-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-xl-linux.pngindex 0e6169666..1d5a3617f 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-xl-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-ltr-xl-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 4559e9279..63d9f6248 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/homepage.spec.ts-snapshots/unfocused-search-rtl-2xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-2xl-linux.pngindex 6283aab87..cb1dbd764 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-2xl-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-2xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-lg-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-lg-linux.pngindex 92ce6eef9..0669cc2c6 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-lg-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-lg-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-md-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-md-linux.pngindex e25394737..d39753598 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-md-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-md-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-sm-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-sm-linux.pngindex ed0120423..377ed192d 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-sm-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-sm-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-xl-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-xl-linux.pngindex ed94731eb..c542fb72e 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-xl-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-xl-linux.png differdiff --git a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-xs-linux.png b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-xs-linux.pngindex 5602c3985..4669e018e 100644Binary files a/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-xs-linux.png and b/test/playwright/visual-regression/pages/homepage.spec.ts-snapshots/unfocused-search-rtl-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-xs-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-xs-linux.pngindex 4fd353097..84e1314ee 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-xs-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-ltr-xs-linux.png differdiff --git a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-xs-linux.png b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-xs-linux.pngindex c196dcfa4..1cf0a3cb7 100644Binary files a/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-xs-linux.png and b/test/playwright/visual-regression/pages/pages.spec.ts-snapshots/non-existent-rtl-xs-linux.png differ