Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

added titles for icons throughout site #2263

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/ActionsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,14 @@ const ActionsPanel = ({
lastViewedLog
)} IST`}</h5>

<div className="bell-icon fadeInUp" style={trail[1]}>
<div className="bell-icon fadeInUp" title="Show the recent updated notifications." style={trail[1]}>
{!showUpdates ? Bell : BellOff}
{newUpdate && <div className="indicator"></div>}
</div>

<div
className="timeline-icon fadeInUp"
title="Show the recent Timeline."
onClick={handleClick}
style={trail[2]}
>
Expand Down
5 changes: 5 additions & 0 deletions src/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function Footer() {
<div className="links">
<a
href="https://github.com/covid19india/covid19india-react"
title="GitHub"
className="github"
target="_blank"
rel="noopener noreferrer"
Expand All @@ -32,6 +33,7 @@ function Footer() {
<a
className="api"
href="https://api.covid19india.org"
title="COVID19-India API"
target="_blank"
rel="noopener noreferrer"
>
Expand All @@ -41,6 +43,7 @@ function Footer() {
<a
href="https://t.me/covid19indiaorg"
className="telegram"
title="Telegram"
target="_blank"
rel="noopener noreferrer"
>
Expand All @@ -49,6 +52,7 @@ function Footer() {

<a
href="https://twitter.com/covid19indiaorg"
title="Twitter"
target="_blank"
rel="noopener noreferrer"
className="twitter"
Expand All @@ -58,6 +62,7 @@ function Footer() {

<a
href="mailto:[email protected]"
title="Mail"
className="mail"
target="_blank"
rel="noopener noreferrer"
Expand Down
1 change: 1 addition & 0 deletions src/components/MapExplorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ function MapExplorer({

{mapMeta.mapType === MAP_TYPES.STATE && (
<div
title="Back to Home"
className="back fadeInUp"
onClick={() => {
history.push('/#MapExplorer');
Expand Down
10 changes: 5 additions & 5 deletions src/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function Navbar({

return (
<animated.div className="Navbar" style={spring}>
<div className="navbar-left" onClick={handleLangaugeSwitcher.bind(this)}>
<div className="navbar-left" title="Back to Home" onClick={handleLangaugeSwitcher.bind(this)}>
{locales[currentLanguage]}
</div>

Expand All @@ -76,22 +76,22 @@ function Navbar({

{windowSize.width > 769 && (
<React.Fragment>
<Link to="/">
<Link to="/" title="Home">
<span>
<Icon.Home {...activeNavIcon('/')} />
</span>
</Link>
<Link to="/blog">
<Link to="/blog" title="Blog">
<span>
<Icon.Book {...activeNavIcon('/blog')} />
</span>
</Link>
<Link to="/about">
<Link to="/about" title="About">
<span>
<Icon.HelpCircle {...activeNavIcon('/about')} />
</span>
</Link>
<span>
<span title="Dark/Light Mode">
<SunMoon {...{darkMode}} />
</span>
</React.Fragment>
Expand Down
6 changes: 5 additions & 1 deletion src/components/StateDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ const StateDropdown = ({stateCode, trail}) => {
);

return (
<div className="StateDropdown" ref={dropdownRef}>
<div
className="StateDropdown"
title="Click here to select different States/UT."
ref={dropdownRef}
>
<animated.h1
className="state-name fadeInUp"
style={trail}
Expand Down
2 changes: 1 addition & 1 deletion src/components/StateHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function StateHeader({data, stateCode}) {
</h5>
)}
{data?.meta?.tested?.source && (
<h5>
<h5 title="Show the Relavent website for source.">
{'per '}
<a href={data.meta.tested.source} target="_noblank">
source
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function Table({
</div>
</div>

<h5 className="text">
<h5 className="text" title="About the site.">
{t('Compiled from State Govt. numbers')},{' '}
<Link to="/about">{t('know more')}!</Link>
</h5>
Expand Down
7 changes: 6 additions & 1 deletion src/components/TimeseriesExplorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ function TimeseriesExplorer({
>
<div className="timeseries-header">
<div
title="Hepls you to toggle with/without maps."

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misspelled - Helps

className={classnames('anchor', {
stickied: anchor === 'timeseries',
})}
Expand Down Expand Up @@ -256,7 +257,11 @@ function TimeseriesExplorer({
})}
</select>
</div>
<div className="reset-icon" onClick={resetDropdown}>
<div
className="reset-icon"
title="Reset back."
onClick={resetDropdown}
>
<ReplyIcon />
</div>
</div>
Expand Down