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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showcase - Add min-height to Shw::Label #2746

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

Conversation

didoo
Copy link
Contributor

@didoo didoo commented Mar 5, 2025

📌 Summary

Simple PR to add a min-height to the Shw::Label in the showcase, so it doesn't collapse when empty.


👀 Component checklist

  • Percy was checked for any visual regression

💬 Please consider using conventional comments when reviewing this PR.

@didoo didoo requested a review from a team as a code owner March 5, 2025 22:02
Copy link

vercel bot commented Mar 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
hds-showcase ✅ Ready (Inspect) Visit Preview Mar 5, 2025 10:02pm
hds-website ✅ Ready (Inspect) Visit Preview Mar 5, 2025 10:02pm

@@ -9,6 +9,7 @@

.shw-label {
@include shw-font-family("rubik");
min-height: 0.96rem; // needed to avoid vertical collapsing when the label is empty
Copy link
Contributor

@KristinLBradley KristinLBradley Mar 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why so specific? (vs. a value like "1px" or something)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to have the same (min) height as the other labels of the sibling items, to keep visual alignment.

@didoo
Copy link
Contributor Author

didoo commented Mar 5, 2025

I'm moving the PR to draft because there are too many failing visual regression tests in Percy, and I want to think a bit more about potential alternative solutions.

@didoo didoo marked this pull request as draft March 5, 2025 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants