Skip to content

Commit ba1caef

Browse files
authored
Add external link icon to Jetpack reader feed link (#2247)
1 parent 0773712 commit ba1caef

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

assets/css/activitypub-admin.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ summary {
176176
transform: translateY(-30%) rotate(-135deg);
177177
}
178178

179+
table.followings .dashicons {
180+
font-size: 1em;
181+
line-height: 1.7;
182+
}
183+
179184
.activitypub-settings-accordion-trigger:active,
180185
.activitypub-settings-accordion-trigger:hover {
181186
background: #f6f7f7;

integration/class-jetpack.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,11 @@ public static function add_reader_link( $actions, $item ) {
105105
return array_merge(
106106
array(
107107
'reader' => sprintf(
108-
'<a href="%s" target="_blank">%s</a>',
108+
'<a href="%1$s" target="_blank">%2$s<span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
109109
esc_url( $url ),
110-
esc_html__( 'View Feed', 'activitypub' )
110+
esc_html__( 'View Feed', 'activitypub' ),
111+
/* translators: Hidden accessibility text. */
112+
esc_html__( '(opens in a new tab)', 'activitypub' )
111113
),
112114
),
113115
$actions

0 commit comments

Comments
 (0)