Skip to content

Commit

Permalink
Merge pull request #5887 from ampproject/fix/amp-error-count-placement
Browse files Browse the repository at this point in the history
Fix misplacement of AMP error count in editor
  • Loading branch information
westonruter committed Feb 16, 2021
2 parents 6224acd + 7455c57 commit d12bd98
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions assets/src/block-validation/style.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
.components-button[aria-label="AMP for WordPress"],
.components-button[aria-label="AMP for WordPress"]:hover,
.components-button[aria-label="AMP for WordPress"]:focus {
color: transparent;
}

.interface-pinned-items .components-button.has-icon[aria-label="AMP for WordPress"] {
padding: 0;
position: relative;
}

.amp-plugin-icon {
align-items: center;
display: flex;
height: 100%;
justify-content: center;
width: 100%;
position: relative;
}

.amp-toolbar-icon svg {
Expand All @@ -35,19 +25,15 @@
border: 2px solid transparent;
border-radius: 8px;
color: #fff;
display: inline-flex;
flex-shrink: 0;
font-size: 10px;
height: 16px;
justify-content: center;
width: 16px;
}

.amp-error-count-badge {
display: flex;
position: absolute;
right: 1px;
top: 2px;
right: -6px;
top: -5px;
}

.is-pressed .amp-error-count-badge {
Expand Down

0 comments on commit d12bd98

Please sign in to comment.