-
-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enhance accessibilty and seo for hero section #529
base: beta
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -1,18 +1,24 @@ | ||||
const Hero = () => ( | ||||
<div className="flex flex-col py-24 items-center mx-2.5"> | ||||
<section | ||||
aria-labelledby="hero-heading" | ||||
className="flex flex-col py-24 items-center mx-2.5"> | ||||
Check failure on line 4 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 4 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 4 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 4 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 4 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 4 in src/components/Hero.tsx GitHub Actions / Code standards
|
||||
<div> | ||||
<h1 className="font-Lexend text-4xl md:text-5xl text-center text-lightSlate leading-tight tracking-tight"> | ||||
<h1 | ||||
className="font-Lexend text-4xl md:text-5xl text-center text-lightSlate leading-tight tracking-tight" | ||||
id="hero-heading" | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. refactor (blocking): not required base on comment above.
Suggested change
|
||||
> | ||||
{`Find `} | ||||
|
||||
<span className="bg-gradient-to-r from-gradFirst via-gradMiddle to-gradLast bg-clip-text text-transparent"> | ||||
<span | ||||
Check warning on line 11 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 11 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 11 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 11 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 11 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 11 in src/components/Hero.tsx GitHub Actions / Code standards
|
||||
className="bg-gradient-to-r from-gradFirst via-gradMiddle to-gradLast bg-clip-text text-transparent" | ||||
aria-label="Open-Source Repositories" | ||||
Check failure on line 13 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 13 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 13 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 13 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 13 in src/components/Hero.tsx GitHub Actions / Code standards
Check failure on line 13 in src/components/Hero.tsx GitHub Actions / Code standards
|
||||
> | ||||
Open-Source Repositories | ||||
</span> | ||||
|
||||
<br /> | ||||
Check warning on line 17 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 17 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 17 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 17 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 17 in src/components/Hero.tsx GitHub Actions / Code standards
Check warning on line 17 in src/components/Hero.tsx GitHub Actions / Code standards
|
||||
trending today. | ||||
</h1> | ||||
</div> | ||||
</div> | ||||
</section> | ||||
); | ||||
|
||||
export default Hero; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactor (blocking): assistive technologies know how to pick up the header within the section, so no need for aria.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot for the information 😊