File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,23 @@ export class DialogBase extends FocusVisiblePolyfillMixin(SpectrumElement) {
194194 super . update ( changes ) ;
195195 }
196196
197+ /**
198+ * Returns a visually hidden dismiss button for mobile screen reader accessibility.
199+ * This button is placed before and after dialog content to allow mobile screen reader
200+ * users (particularly VoiceOver on iOS) to easily dismiss the overlay.
201+ */
202+ protected get dismissHelper ( ) : TemplateResult {
203+ return html `
204+ < div class ="visually-hidden ">
205+ < button
206+ tabindex ="-1 "
207+ aria-label ="Dismiss "
208+ @click =${ this . close }
209+ > </ button >
210+ </ div >
211+ ` ;
212+ }
213+
197214 protected renderDialog ( ) : TemplateResult {
198215 return html `
199216 < slot > </ slot >
You can’t perform that action at this time.
0 commit comments