Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix height difference in search and search-and-filter #5019

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

codeEmpress1
Copy link
Contributor

@codeEmpress1 codeEmpress1 commented Mar 4, 2024

Done

  • Fix height difference in search and search-and-filter

Fixes [list issues/bugs if needed] #4984

QA

  • Go to search and filter and search, inspect both components and ensure the heights are the same
  • Open demo
  • [Add QA steps]
  • Review updated documentation:
    • [List any updated documentation for review]

Check if PR is ready for release

If this PR contains Vanilla SCSS code changes, it should contain the following changes to make sure it's ready for the release:

  • PR should have one of the following labels to automatically categorise it in release notes:
    • Feature 馃巵, Breaking Change 馃挘, Bug 馃悰, Documentation 馃摑, Maintenance 馃敤.
  • Vanilla version in package.json should be updated relative to the most recent release, following semver convention:
    • if CSS class names are not changed it can be bugfix relesase (x.x.X)
    • if CSS class names are changed/added/removed it should be minor version (x.X.0)
    • see the wiki for more details
  • Any changes to component class names (new patterns, variants, removed or added features) should be listed on the what's new page.

Screenshots

Before

image

After

image

[if relevant, include a screenshot or screen capture]

@webteam-app
Copy link

Demo starting at https://vanilla-framework-5019.demos.haus

@bartaz
Copy link
Contributor

bartaz commented Mar 5, 2024

The issue seems to still be there. If you put search box component side by side the search and filter there is a 1px difference.

image

I'm not certain, but possibly there is a miscalculation here:

$input-height: calc(map-get($line-heights, default-text) + $input-vertical-padding + $spv-nudge - $input-border-thickness);

This may need to be corrected to include the values from

background-color: $colors--theme--background-inputs;
border: 0 solid transparent;
border-bottom: $input-border-thickness solid $colors--theme--border-high-contrast;
border-radius: 0;
color: $colors--theme--text-default;
font-family: unquote($font-base-family);
font-size: 1rem;
font-weight: $font-weight-regular-text;
line-height: map-get($line-heights, default-text);
margin-bottom: $input-margin-bottom;
min-width: 8em;
padding-left: $sph--small;
padding-right: $sph--small;
vertical-align: baseline;
width: 100%;
input, so take the same line height, paddings and a single border.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants