-
Notifications
You must be signed in to change notification settings - Fork 138
Add dominant color styling before any existing inline style attributes #716
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
Conversation
| if ( empty( $attr['style'] ) ) { | ||
| $attr['style'] = ''; | ||
| } |
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.
Maybe we should get rid of this..
spacedmonkey
left a comment
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.
Some simple feedback, but otherwise, looking good.
felixarntz
left a comment
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.
@mukeshpanchal27 Almost LGTM, except for what @spacedmonkey already pointed out.
|
@mukeshpanchal27 Since this is a bug fix that has product side implications, we should add a milestone to the issue. |
|
Nothing additional from me. Thanks for adding a new unit test for this as well! |
Co-authored-by: Jonny Harris <spacedmonkey@users.noreply.github.com>
|
Thanks to all for the feedback. PR is ready for the second round of review. |
felixarntz
left a comment
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.
Thanks @mukeshpanchal27!
Summary
To replicate the issue follow below steps:
Before the patch:

After the patch:

Initially i also think about to use
str_ends_withbut it will create problem when someone add style with space i.e.display: block;then it give false result.Fixes #658
Checklist
[Focus]orInfrastructurelabel.[Type]label.no milestonelabel.