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 mixin that sets hover style on some buttons #17581

Merged
merged 2 commits into from
Oct 8, 2019

Conversation

enriquesanchez
Copy link
Contributor

Fixes #17337

This is a small update to the button-style__hover mixin in _mixins.scss. The change makes the hover style match the "hard line" style used on the block toolbar and the "Settings" and "More tools & options".

hovers

Some nitpicks

This change makes more noticeable the size/padding difference between the top toolbar and block toolbar buttons that was already present. Not sure if it's worth looking at this, thoughts?

toolbar-hovers

We also have another hover style in the block inserter, should we also look at updating this one?

Screen Shot 2019-09-25 at 1 27 47 PM

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Sep 25, 2019
@mapk mapk added the Needs Design Feedback Needs general design feedback. label Sep 26, 2019
@mapk
Copy link
Contributor

mapk commented Sep 26, 2019

I really like the consistency here, @enriquesanchez! Thanks for taking this on!

I also noticed that this PR updates these as well, which is excellent.

icons

@mapk
Copy link
Contributor

mapk commented Sep 26, 2019

It also updated it here too:

toptoolbar

One thing to note for another PR is the "Block Navigation" popover hover state AND the block's "More Options" popover hover state don't match the rest of the popover hover states. We'll need to create another PR for this.

... that is... if we want this hover state to perpetuate into the popover menus. After looking at it more, I'm inclined to keep the grey solid hover states for the popover menus. It's great on the icons though.

@enriquesanchez
Copy link
Contributor Author

Thanks for the feedback @mapk!

I've created another PR (#17621) to address the hover styles of the dropdown menus.

@karmatosed
Copy link
Member

Should buttons have the style that is coming from core over the hardline? Specifically, the publish button.

@enriquesanchez
Copy link
Contributor Author

@karmatosed I'm not sure. Think that can be explored on another issue? Particularly if it refers to the Publish button.

@enriquesanchez
Copy link
Contributor Author

@mapk I added the styles to match the updates from #17621, which has already been merged. Would you mind giving it a second look just to be safe?

@swissspidy swissspidy changed the title Update mixing that sets hover style on some buttons Update mixin that sets hover style on some buttons Oct 2, 2019
Copy link
Contributor

@mapk mapk left a comment

Choose a reason for hiding this comment

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

Just tested again, @enriquesanchez and it works really well. It has removed the original hover effect which would have been odd keeping and now shows the lighter grey. Thanks! 👍

hover

@gziolo gziolo merged commit 7110f85 into master Oct 8, 2019
@gziolo gziolo deleted the update/match-hover-state-of-top-toolbar-buttons branch October 8, 2019 07:19
@gziolo gziolo added General Interface Parts of the UI which don't fall neatly under other labels. [Type] Enhancement A suggestion for improvement. and removed First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository General Interface Parts of the UI which don't fall neatly under other labels. Needs Design Feedback Needs general design feedback. labels Oct 8, 2019
@youknowriad youknowriad added this to the Gutenberg 6.7 milestone Oct 14, 2019
gziolo pushed a commit that referenced this pull request Oct 15, 2019
* Update mixing that sets hover style on some buttons

* Add popover hover styles to match updates from #17621
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General Interface Parts of the UI which don't fall neatly under other labels. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hover state of Top Toolbar buttons do not match
5 participants