Repository navigation
Fix misplacement of AMP error count in editor - #5887
Conversation
|
Oh thanks! I noticed that too but didn't yet investigate! |
|
I initially thought it was due to one of the recent dependency updates but |
|
Plugin builds for 7455c57 are ready 🛎️!
|
|
That said, we may want to look into setting up Percy to aid in detecting visual regressions. |
| .components-button[aria-label="AMP for WordPress"], | ||
| .components-button[aria-label="AMP for WordPress"]:hover, | ||
| .components-button[aria-label="AMP for WordPress"]:focus { | ||
| .components-button[aria-label="AMP"], | ||
| .components-button[aria-label="AMP"]:hover, | ||
| .components-button[aria-label="AMP"]:focus { | ||
| color: transparent; | ||
| } | ||
|
|
||
| .interface-pinned-items .components-button.has-icon[aria-label="AMP for WordPress"] { | ||
| .interface-pinned-items .components-button.has-icon[aria-label="AMP"] { |
There was a problem hiding this comment.
I just realized that this was prone to break in the case of "AMP" being translated into another language. It was even worse before when it was "AMP for WordPress", but there is still a chance that "AMP" is localized into another language. Can we limit the selector to just .amp-toolbar-icon?
| .components-button[aria-label="AMP"], | ||
| .components-button[aria-label="AMP"]:hover, | ||
| .components-button[aria-label="AMP"]:focus { | ||
| color: transparent; |
There was a problem hiding this comment.
I don't see what this transparent color was being used for. I removed it in 7455c57.

Summary
Fixes unnoticed regression made in #5870.
Checklist