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

Move button text when pressing #79

Closed
wants to merge 1 commit into from
Closed

Move button text when pressing #79

wants to merge 1 commit into from

Conversation

michaeldll
Copy link

@michaeldll michaeldll commented May 3, 2020

Fixes #34 .

I went with an invisible border instead of changing the button's padding, as per @tpenguinltg 's suggestion on #44.

Looks like it works fine in the most recent versions of Chrome, Firefox and Safari on Mac.
Here's how it looks (might be hard to see the difference, though):
Screenshot 2020-05-03 at 23 16 58
(I think there's an unrelated bug on Safari which changes the button text color to white, and the dotted outline only shows up on Chrome)

Also, this is my very first PR, ever :)

@vercel
Copy link

vercel bot commented May 3, 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/jdan/98css/irm0812w5
✅ Preview: https://98css-git-fork-michaeldll-move-button-text.jdan.now.sh

@jdan
Copy link
Owner

jdan commented May 4, 2020

Hi!

Unfortunately this approach causes the button to shrink slightly

image

(the left button is 1px shorter).

I think we'll need to head back to the drawing board in #44, but I appreciate you taking the time to send this my way.

@jdan jdan closed this May 4, 2020
@michaeldll michaeldll deleted the move-button-text branch May 5, 2020 09:12
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 text should move when button is pressed
2 participants