Skip to content

Commit

Permalink
Improved site accessibility
Browse files Browse the repository at this point in the history
Signed-off-by: aakankshabhende <[email protected]>
  • Loading branch information
aakankshabhende committed Jan 8, 2025
1 parent 3a66a5b commit 74e782a
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 37 deletions.
2 changes: 1 addition & 1 deletion src/components/Features/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const Features = (props) => {
: (<div className="small-card-container">
{props.redirectLinkWithImage.map((item) => (
<Link key={item.text} className="small-card" to={item.redirect}>
<img src={item.image} width={40} />
<img src={item.image} width={40} alt={`${item.text} icon`}/>
<span>{item.text}</span>
</Link>
))}
Expand Down
1 change: 1 addition & 0 deletions src/components/SocialLinks-Color/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const SocialLinksColor = () => {
target="_blank"
rel="noreferrer"
className="footer_twitter"
aria-label="Visit Layer5 on Twitter"
>
<TwitterIcon />
</a>
Expand Down
69 changes: 34 additions & 35 deletions src/sections/General/Navigation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,41 +292,40 @@ const Navigation = () => {
>
{menu.name}
</Link>
<ul>
{menu.subItems !== undefined &&
menu.subItems.map((subItems, index) => {
return (
<li key={index} className="mobile-nav-subitem">
{subItems.externalLink ? (
<a
href={subItems.path}
target="_blank"
onClick={() => {
changeDropdownState();
closeDropDown();
}}
className="mobile-sub-menu-item"
rel="noreferrer"
>
{subItems.name}
</a>
) : (
<Link
to={subItems.path}
onClick={() => {
changeDropdownState();
closeDropDown();
}}
className="mobile-sub-menu-item"
activeClassName="nav-link-active"
>
{subItems.name}
</Link>
)}
</li>
);
})}
</ul>
{menu.subItems !== undefined && (
<ul>
{menu.subItems.map((subItem, subIndex) => (
<li key={subIndex} className="mobile-nav-subitem">
{subItem.externalLink ? (
<a
href={subItem.path}
target="_blank"
onClick={() => {
changeDropdownState();
closeDropDown();
}}
className="mobile-sub-menu-item"
rel="noreferrer"
>
{subItem.name}
</a>
) : (
<Link
to={subItem.path}
onClick={() => {
changeDropdownState();
closeDropDown();
}}
className="mobile-sub-menu-item"
activeClassName="nav-link-active"
>
{subItem.name}
</Link>
)}
</li>
))}
</ul>
)}
</li>
))}
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ const IntegrationsGrid = ({ category, count }) => {
? darkModeIntegrationIcon.publicURL
: integrationIcon
}
alt={item.frontmatter.title}
alt={`${item.frontmatter.title} image`}
aria-label={`${item.frontmatter.title} image`}
height={70}
width={70}
style={{ filter: "brightness(0) invert(1)" }}
Expand Down

0 comments on commit 74e782a

Please sign in to comment.