Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Put back focus-ring and Remove excessive padding from VContentItem (#897)

Olga Bulatbc965e32cbea
diff --git a/src/components/VContentSwitcher/VContentItem.vue b/src/components/VContentSwitcher/VContentItem.vue
index 953c0fad0..16a43eb74 100644
--- a/src/components/VContentSwitcher/VContentItem.vue
+++ b/src/components/VContentSwitcher/VContentItem.vue
@@ -4,11 +4,9 @@
:is-first="itemId === 0"
@click.native="$emit('click', item)"
>
- <div class="flex flex-row items-center py-2">
- <VIcon :icon-path="icon" class="me-2" />
- <span class="pe-20 font-semibold leading-[2.25rem]">{{
- $t(`search-type.${item}`)
- }}</span>
+ <div class="flex flex-row items-center">
+ <VIcon :icon-path="icon" class="me-2 my-2" />
+ <span class="pe-20 font-semibold">{{ $t(`search-type.${item}`) }}</span>
<VPill v-if="status === 'beta'">{{
$t('search-type.status-beta')
}}</VPill>
diff --git a/src/components/VContentSwitcher/VContentTypes.vue b/src/components/VContentSwitcher/VContentTypes.vue
index 808ca72fe..db4aea669 100644
--- a/src/components/VContentSwitcher/VContentTypes.vue
+++ b/src/components/VContentSwitcher/VContentTypes.vue
@@ -10,7 +10,7 @@
<VContentItem
v-for="(item, idx) in content.types"
:key="item"
- :class="{ 'mb-1 p-4': size === 'medium' }"
+ class="md:mb-1"
:item="item"
:item-id="idx"
:icon="content.icons[item]"
diff --git a/src/components/VItemGroup/VItem.vue b/src/components/VItemGroup/VItem.vue
index fc75bca08..d271e1259 100644
--- a/src/components/VItemGroup/VItem.vue
+++ b/src/components/VItemGroup/VItem.vue
@@ -7,14 +7,14 @@
$style[`${contextProps.direction}-bordered`]
}`]: contextProps.bordered,
'bg-dark-charcoal-10': selected && contextProps.bordered,
- 'p-2': isInPopover,
+ 'px-2': isInPopover,
[$style[`${contextProps.direction}-popover-item`]]: isInPopover,
}"
>
<VButton
data-item-group-item
:as="as"
- class="flex justify-between rounded min-w-full group relative hover:bg-dark-charcoal-10 px-2 py-2"
+ class="flex justify-between min-w-full group relative hover:bg-dark-charcoal-10 px-2 py-2"
:class="[
$style.button,
$style[`${contextProps.direction}-button`],
@@ -35,7 +35,7 @@
@click.native="$emit('click')"
>
<div
- class="flex-grow whitespace-nowrap my-0 rounded-sm px-2 group-focus-visible:ring group-focus-visible:ring-pink md:group-focus-visible:ring-tx"
+ class="flex-grow whitespace-nowrap my-0 rounded-sm px-2 group-focus-visible:ring group-focus-visible:ring-pink"
:class="[
$style[`${contextProps.direction}-content`],
$style[`${contextProps.size}-content`],