-
Notifications
You must be signed in to change notification settings - Fork 63
Add pink border to VSearchButton on group hover #1286
Conversation
@obulat I believe you've removed the actual fix and only kept the tests in this PR! |
This reverts commit c0fa198.
Yes! I wanted to see what the CI would show for the failing screenshot tests :) I remember seeing the two screenshots side by side showing the difference between the expected and the actual screenshot, but I planned to look at the CI test results and revert the change back, and thought that no one will see it on a weekend before traveling 😁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks so much better but there's a very slight gap still between the button and the search area on the leading edge where it connects to the search area's outline:
Approving because it's minor and we can solve in a separate PR if you want. Thanks for fixing this! It was bugging me today during our bug bash 😁
@@ -1,6 +1,6 @@ | |||
<template> | |||
<div | |||
class="input-field group flex flex-row items-center hover:bg-dark-charcoal-06 focus-within:bg-dark-charcoal-06 group-hover:bg-dark-charcoal-06 p-0.5px focus-within:p-0 border focus-within:border-1.5 border-dark-charcoal-20 rounded-sm overflow-hidden focus-within:border-pink" | |||
class="input-field group flex flex-row items-center focus-within:bg-dark-charcoal-06 group-hover:bg-dark-charcoal-06 p-0.5px focus-within:p-0 border focus-within:border-1.5 border-dark-charcoal-20 rounded-sm overflow-hidden focus-within:border-pink" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Background color is already applied on hover by group-hover:bg-dark-charcoal-06
class.
@@ -52,6 +52,8 @@ | |||
"src/components/VNotificationBanner.vue", | |||
"src/components/VMigrationNotice.vue", | |||
"src/components/VVariations.vue", | |||
"src/components/VInputField/VInputField.vue", | |||
"src/components/VHeader/VSearchBar/VSearchBar.vue", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not add VSearchButton
here because it depends on a couple of composables that are being converted in other PRs.
@@ -32,6 +32,7 @@ import { useMatchHomeRoute } from '~/composables/use-match-routes' | |||
import VInputField from '~/components/VInputField/VInputField.vue' | |||
import VSearchButton from '~/components/VHeader/VSearchBar/VSearchButton.vue' | |||
|
|||
const SIZES = ['small', 'medium', 'large', 'standalone'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given these are passed straight through to the VInputField, could we import the array of sizes from there instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this suggestion! I have forgot that we are re-using the same array. Edited in the last commit.
5ff1adb
to
1349bbb
Compare
Make snapshots for whole header Scroll header by focusing on Load more button Use data-testid to find header (out of 3 header elements) Add method to tape name if it's not `GET` Skip some tests for faster debugging Add missing tapes Remove `.skip` for visual regression tests Add snapshots
11e91ea
to
8a46962
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The button looks better. Thanks for all the improvements in the tests side! :)
let suffix = `${tape.req.headers.connection}` | ||
if (tape.req.method !== 'GET') { | ||
suffix = `${suffix}_${tape.req.method}` | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition 💯
Fixes
Fixes #1284 by @obulat
Description
This PR adds a pink border on
VSearchBar
group hover so that the normal gray border doesn't make the button look small.It also:
VSearchBar
to TSVSearchBar
storymob
breakpoint and simplify VFilterButton #1275)method
to the end of the tape names if it's notGET
.Testing Instructions
Hover over the search bar in the header. The search button should always look like it has the same height as the search bar.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin