mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
[Beta] Add ARIA labels (#4335)
* Add ARIA labels * Remove unnecessary ARIA label * Add Facebook and Twitter ARIA labels
This commit is contained in:
@@ -126,11 +126,13 @@ export function Footer() {
|
||||
</FooterLink>
|
||||
<div className="flex flex-row mt-8 gap-x-2">
|
||||
<ExternalLink
|
||||
aria-label="React on Facebook"
|
||||
href="https://www.facebook.com/react"
|
||||
className={socialLinkClasses}>
|
||||
<IconFacebookCircle />
|
||||
</ExternalLink>
|
||||
<ExternalLink
|
||||
aria-label="React on Twitter"
|
||||
href="https://twitter.com/reactjs"
|
||||
className={socialLinkClasses}>
|
||||
<IconTwitter />
|
||||
|
||||
@@ -173,6 +173,7 @@ export default function Nav() {
|
||||
<div className="flex my-4 h-10 mx-0 w-full lg:hidden justify-end slg:max-w-sm">
|
||||
<Search />
|
||||
<button
|
||||
aria-label="Give feedback"
|
||||
type="button"
|
||||
className="inline-flex lg:hidden items-center p-1 ml-4 lg:ml-6 relative top-px"
|
||||
onClick={handleFeedback}>
|
||||
|
||||
@@ -95,6 +95,7 @@ export const Search: React.FC<SearchProps> = ({
|
||||
</Head>
|
||||
|
||||
<button
|
||||
aria-label="Search"
|
||||
type="button"
|
||||
className="inline-flex md:hidden items-center text-lg p-1 ml-4 lg:ml-6"
|
||||
onClick={onOpen}>
|
||||
|
||||
Reference in New Issue
Block a user