Enhance Accessibility: Add ARIA Attributes to SearchModal Component
Signed-off-by: JeevaRamanathan <jeevaramanathan.m@infosys.com>
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user