Skip to content

Commit

Permalink
Masterbar: Add a label for the Reader icon. (#98479)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
spsiddarthan authored Jan 16, 2025
1 parent 58f2dfa commit 06fa126
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/layout/masterbar/logged-in.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,11 @@ class MasterbarLoggedIn extends Component {
tooltip={ translate( 'Read the blogs and topics you follow' ) }
preloadSection={ this.preloadReader }
hasGlobalBorderStyle
/>
>
<span class="masterbar__icon-label masterbar__item-reader-label">
{ translate( 'Reader' ) }
</span>
</Item>
);
}

Expand Down
4 changes: 4 additions & 0 deletions client/layout/masterbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,10 @@ body.is-mobile-app-view {
}
}

.masterbar__item-reader-label {
padding-left: 6px;
}

.masterbar-cart-button {
svg {
overflow: visible;
Expand Down

0 comments on commit 06fa126

Please sign in to comment.