-
Notifications
You must be signed in to change notification settings - Fork 359
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
Curator: update link and button styles #6028
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for picking this up @mikachan!
I noticed a few things:
- When the button is linked and is clicked, both the hover and active visual states are present:
- When I click on a linked outline button, the border is still black:
- Gutenberg provides default CSS for the "visited" state that makes the text of buttons white:
This results in the text of the button not showing at all, since the background is also white. Is this a bug in Gutenberg, or should we address that somehow here?
Thanks @jffng! 1 & 2 should now be fixed.
I've seen this at least once before when working on themes, so I'm thinking it's something that should be addressed in Gutenberg, probably as part of addressing hover/focus/active state styles (here are some related issues: WordPress/gutenberg#28063, WordPress/gutenberg#27075). I've added a fix in the theme for now. |
I notice that a 'filled button' doesn't have the same padding as an outline button. Should it?
|
Thanks @pbking and @beafialho. The 'fill' button now has the same padding as the 'outline' button. Here's what it looks like in the different states: |
This now addresses the problem with a custom background color, however I'm not sure that the padding is appropriate when there isn't one. Would it be helpful to use that padding based on the button having a .has-background class or something? |
Yep good idea, I've applied the padding to just the buttons with a background now. Does this look better? |
👍 Looks good to me! |
Changes proposed in this Pull Request:
This PR updates the link and button styles to match the mocks in #5996.
Default:
![image](https://user-images.githubusercontent.com/1645628/169881686-c193ba0a-b555-43fe-b9e0-42ac440bb9be.png)
Hover:
![image](https://user-images.githubusercontent.com/1645628/169881881-8946dea0-27e3-48ea-a162-a922a091f8c2.png)
Click/focus:
![image](https://user-images.githubusercontent.com/1645628/169883199-001731aa-bc0b-413d-9291-d9b97a5d48ca.png)
Active:
![image](https://user-images.githubusercontent.com/1645628/169883338-24b25542-d071-413d-8d8c-bb4d79467c95.png)
Related issue(s):
Closes #5996