added an aria-label for the search input field (#747)

jpg619 committed Oct 12, 2023 at 19:33 UTC 70b9c325a21dac0fddc283cd9a598d190f9a52da
2 files changed +2
theme/src/components/mobile-search.js
+1
@@ -46,6 +46,7 @@ function MobileSearch({onDismiss, ...props}) {
46 {...getInputProps({
47 placeholder: `Search ${siteMetadata.title}`,
48 width: '100%',
49 + 'aria-label': `Search ${siteMetadata.title}`,
50 })}
51 />
52 </motion.div>
theme/src/components/search.js
+1
@@ -14,6 +14,7 @@ function Search(props) {
14 {...getInputProps({
15 placeholder: `Search ${siteMetadata.title}`,
16 width: 240,
17 + 'aria-label': `Search ${siteMetadata.title}`,
18 })}
19 />
20 <Position