Repository navigation
Add dominant color styling before any existing inline style attributes - #716
Conversation
| if ( empty( $attr['style'] ) ) { | ||
| $attr['style'] = ''; | ||
| } |
There was a problem hiding this comment.
Maybe we should get rid of this..
spacedmonkey
left a comment
There was a problem hiding this comment.
Some simple feedback, but otherwise, looking good.
felixarntz
left a comment
There was a problem hiding this comment.
@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. |
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.