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

Fix issue where active button style pushes content down 1px #146

Closed
wants to merge 2 commits into from
Closed

Fix issue where active button style pushes content down 1px #146

wants to merge 2 commits into from

Conversation

curtgrimes
Copy link

Previously, when a button was pressed, the content below it would shift down 1px. This bug was introduced in #44 which added the effect of the text shifting left and down 1px on press.

After this commit, the text of the button still correctly shifts down and left 1px but the overall height of the button does not change.

This commit introduces a small issue where the button does not shift down visually in Safari.

Fix #145

Previously, when a button was pressed, the content below it would shift
down 1px. This bug was introduced in #44 which added the effect of the
text shifting left and down 1px on press.

After this commit, the text of the button still shifts down and left 1px
but the overall height of the button does not change.

This commit introduces a small issue where the button does not shift
down visually in Safari.

Fix #145
@vercel
Copy link

vercel bot commented Oct 24, 2022

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

Name Status Preview Updated
98css ❌ Failed (Inspect) Oct 29, 2022 at 4:04PM (UTC)

style.css Outdated Show resolved Hide resolved
Make the padding change on an :active button properly shift the text
right 1px regardless of if the button contains only a little text
(keeping the button at its `min-width`) or if the button contains a lot
of text.
@jdan
Copy link
Owner

jdan commented Nov 13, 2022

#150 introduced a cool hack with text-shadow that I just merged, but thank you for your time and patience here!

@jdan jdan closed this Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Button height glitch - 1px displacement when pressed
2 participants