Skip to content

Commit 06fa126

Browse files
authored
Masterbar: Add a label for the Reader icon. (#98479)
* Masterbar: Add a label for the Reader icon. * Remove comment * Hide the label on mobile screens. * Added translation. * Make <span> a child component of Item.
1 parent 58f2dfa commit 06fa126

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

client/layout/masterbar/logged-in.jsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,11 @@ class MasterbarLoggedIn extends Component {
487487
tooltip={ translate( 'Read the blogs and topics you follow' ) }
488488
preloadSection={ this.preloadReader }
489489
hasGlobalBorderStyle
490-
/>
490+
>
491+
<span class="masterbar__icon-label masterbar__item-reader-label">
492+
{ translate( 'Reader' ) }
493+
</span>
494+
</Item>
491495
);
492496
}
493497

client/layout/masterbar/style.scss

+4
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,10 @@ body.is-mobile-app-view {
845845
}
846846
}
847847

848+
.masterbar__item-reader-label {
849+
padding-left: 6px;
850+
}
851+
848852
.masterbar-cart-button {
849853
svg {
850854
overflow: visible;

0 commit comments

Comments
 (0)