Skip to content

Commit

Permalink
fix(link-control): reduce show-icon-labels css specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi3315 committed Feb 22, 2023
1 parent 16d9149 commit 3b42811
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions packages/block-editor/src/components/link-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ $preview-image-height: 140px;
}

.block-editor-link-control {
$root: &;
position: relative;
min-width: $modal-min-width;

Expand All @@ -25,17 +24,15 @@ $preview-image-height: 140px;
}

.show-icon-labels & {
#{$root}__tools {
.components-button.has-icon {
// Hide the button icons when labels are set to display...
svg {
display: none;
}
// ... and display labels.
// Uses ::before as ::after is already used for active tab styling.
&::before {
content: attr(aria-label);
}
.components-button.has-icon {
// Hide the button icons when labels are set to display...
svg {
display: none;
}
// ... and display labels.
// Uses ::before as ::after is already used for active tab styling.
&::before {
content: attr(aria-label);
}
}
}
Expand Down

0 comments on commit 3b42811

Please sign in to comment.