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

Update layout when the Counter is empty #1121

Merged
merged 1 commit into from
Aug 3, 2020

Conversation

nuthinking
Copy link
Contributor

@nuthinking nuthinking commented Jul 8, 2020

Replacing visibility:hidden with display:none for empty Counter so that the layout is always optimal and consistent with the common usage of the hidden html tag when its value is 0. To be considered also that visibility:hidden works as non-disruptive placeholder for the incoming amount only if it has 1 digit.

/cc @primer/ds-core


Revert https://github.com/github/github/pull/148773/commits/5138e844464f77549c8174d04eda83f9428d55ff once this is released.

Closes https://github.com/github/design-systems/issues/915

@vercel
Copy link

vercel bot commented Jul 8, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/primer/primer-css/9xkrp1pfr
✅ Preview: https://primer-css-git-fork-nuthinking-master.primer.vercel.app

@vercel vercel bot temporarily deployed to Preview July 8, 2020 06:49 Inactive
Copy link
Contributor

@simurai simurai left a comment

Choose a reason for hiding this comment

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

LGTM! 🚢👍

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.

2 participants