Skip to content

Commit

Permalink
Add tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
okmttdhr committed Feb 19, 2024
1 parent c325b74 commit 9e76648
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
14 changes: 12 additions & 2 deletions client/layout/global-sidebar/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,20 @@ export const GlobalSidebarFooter: FC< {
} > = ( { translate, user } ) => {
return (
<SidebarFooter>
<a href="/read" className="sidebar__footer-link" title={ translate( 'Reader' ) }>
<a
href="/read"
className="sidebar__footer-link tooltip tooltip-bottom"
title={ translate( 'Reader' ) }
data-tooltip={ translate( 'Reader' ) }
>
<CustomReaderIcon />
</a>
<a href="/me" className="sidebar__footer-link" title={ translate( 'Profile' ) }>
<a
href="/me"
className="sidebar__footer-link tooltip tooltip-bottom"
title={ translate( 'Profile' ) }
data-tooltip={ translate( 'Profile' ) }
>
<Gravatar user={ user } size={ 20 } imgSize={ 20 } />
</a>
<AsyncLoad
Expand Down
1 change: 1 addition & 0 deletions client/layout/global-sidebar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
align-items: center;
margin-left: 20px;
height: 40px;
cursor: pointer;
svg {
fill: var(--studio-white);
}
Expand Down

0 comments on commit 9e76648

Please sign in to comment.