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

Fixed color picker width #3120

Merged
merged 1 commit into from
Oct 24, 2017
Merged

Fixed color picker width #3120

merged 1 commit into from
Oct 24, 2017

Conversation

jorgefilipecosta
Copy link
Member

@jorgefilipecosta jorgefilipecosta commented Oct 24, 2017

This PR fixes a color picker problem that I detect recently. To reproduce the bug just go to the paragraph and try to set a custom color.

Description

It removes a rule that overrides the normal width of the custom color picker.

Screenshots:

Before:
screen shot 2017-10-24 at 13 11 04

After:
screen shot 2017-10-24 at 13 10 26

Notes

In my environment, this fixed the problem, but maybe the problem is something specific to my environment if yes I will try to find the reason why in my machine the color picker in the master appears wrong.

This problem is not happening on my machine on an external install with the last release.

@jorgefilipecosta jorgefilipecosta added [Feature] Inspector Controls The interface showing block settings and the controls available for each block [Type] Bug An existing feature does not function as intended labels Oct 24, 2017
@jorgefilipecosta jorgefilipecosta self-assigned this Oct 24, 2017
@jasmussen
Copy link
Contributor

Thanks for the PR & screenshots.

Is there any way you can avoid using !important? Perhaps you can increase the specificity of the selector? We should try and avoid !important if at all possible, as its sort of a mammoth hammer that usually brings problems along with it down the road.

@jorgefilipecosta
Copy link
Member Author

Hi @jasmussen, yes I agree important should be avoided, in this PR we are removing the rule and the important usage. I tested both paragraph and button and it looks like this rule can be safely discarded.

@jasmussen
Copy link
Contributor

My apologies, I don't know how I mistook that red color for green. Yes, glad to see the !important gone.

@jorgefilipecosta
Copy link
Member Author

Hi @jasmussen no problem :) Let me know your thougths and if you feel is ok to merge this fix.

Copy link
Contributor

@jasmussen jasmussen left a comment

Choose a reason for hiding this comment

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

Works for me in Chrome and Firefox. Nice!

@jorgefilipecosta
Copy link
Member Author

Thank you @jasmussen it was merged!

@jorgefilipecosta jorgefilipecosta deleted the fix/color-picker-width branch October 24, 2017 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Inspector Controls The interface showing block settings and the controls available for each block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants