Skip to content

Commit

Permalink
Fix external link indicator in Link Control (#60439)
Browse files Browse the repository at this point in the history
* Add display inline

* target the new span rather than the svg

* use clip

Co-authored-by: richtabor <richtabor@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: jeryj <jeryj@git.wordpress.org>
  • Loading branch information
5 people authored Apr 15, 2024
1 parent d9a6429 commit 06b3537
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/block-editor/src/components/link-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ $block-editor-link-control-number-of-actions: 1;
border-radius: $radius-block-ui;
line-height: 1.1;


&:focus {
box-shadow: none;
}
Expand All @@ -268,8 +269,15 @@ $block-editor-link-control-number-of-actions: 1;
font-weight: normal;
}

svg {
display: none; // specifically requested to be removed visually as well.
.components-external-link__icon {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0); // specifically requested to be removed visually as well.
border: 0;
}
}
}
Expand Down

0 comments on commit 06b3537

Please sign in to comment.