Merge pull request #24133 from JeevaRamanathan/issue-22906

Fix: Added ARIA Attributes to SearchModal Component
This commit is contained in:
Andre Wanlin
2024-05-03 11:00:56 -05:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-search': patch
---
Added `aria-label` attribute to DialogTitle element and set `aria-modal` attribute to `true` for improved accessibility in the search modal.
@@ -190,7 +190,8 @@ export const SearchModal = (props: SearchModalProps) => {
paperFullWidth: classes.paperFullWidth,
}}
onClose={toggleModal}
aria-labelledby="search-modal-title"
aria-label="Search Modal"
aria-modal="true"
fullWidth
maxWidth="lg"
open={open}