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

chore: Update: Use some mixins in button styles instead of media queries. #17012

Conversation

jorgefilipecosta
Copy link
Member

Description

Probably soon our mixins will have additional logic e.g: to force mobile styles even if the window is big. It is important that we avoid media queries as much as possible and try to use the mixins.
This PR fixes two direct cases I found where mixins could be used instead of a media query.

How has this been tested?

I added a button block and verified the link field continued to work as before.

@jorgefilipecosta jorgefilipecosta added [Type] Enhancement A suggestion for improvement. [Type] Code Quality Issues or PRs that relate to code quality [Block] Buttons Affects the Buttons Block labels Aug 12, 2019
@jorgefilipecosta jorgefilipecosta merged commit eebf33b into master Aug 13, 2019
@jorgefilipecosta jorgefilipecosta deleted the update/use-some-mixins-in-button-instead-of-media-queries branch August 13, 2019 11:14
@senadir senadir added this to the Gutenberg 6.4 milestone Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Buttons Affects the Buttons Block [Type] Code Quality Issues or PRs that relate to code quality [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants