Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Fix search type button outer spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Jan 16, 2023
1 parent 3c649eb commit 722978e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/components/VContentSwitcher/VSearchTypes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<div
v-for="(category, index) in contentTypeGroups"
:key="index"
class="flex flex-col py-2"
class="flex flex-col"
:class="{
'border-t border-dark-charcoal-20 bg-dark-charcoal-06':
index > 0 && !bordered,
'w-66 gap-1': size === 'small',
'w-66 gap-1 py-2': size === 'small',
}"
>
<h4
Expand Down
2 changes: 1 addition & 1 deletion src/components/VHeader/VSearchBar/VStandaloneSearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@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:p-0 focus-within:pe-1.5px"
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',
Expand Down
2 changes: 1 addition & 1 deletion src/components/VHomepageContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<VSearchTypeButton
id="search-type-button"
ref="searchTypeButtonRef"
class="me-2"
class="ms-2"
v-bind="{ ...triggerA11yProps, ...searchTypeProps }"
:show-label="isSm"
aria-controls="content-switcher-popover"
Expand Down
10 changes: 3 additions & 7 deletions src/components/VItemGroup/VItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -248,6 +244,6 @@ export default defineComponent({
@apply p-3;
}
.medium-button {
@apply px-6 py-5;
@apply p-5 ps-6;
}
</style>

0 comments on commit 722978e

Please sign in to comment.