@@ -201,18 +201,10 @@ export class ActionSheet implements ComponentInterface, OverlayInterface {
201201 async present ( ) : Promise < void > {
202202 const unlock = await this . lockController . lock ( ) ;
203203
204- // hide from screen readers before animating
205- // this is to avoid reading the action sheet content
206- // before it's fully visible
207- this . el . setAttribute ( 'aria-hidden' , 'true' ) ;
208-
209204 await this . delegateController . attachViewToDom ( ) ;
210205
211206 await present ( this , 'actionSheetEnter' , iosEnterAnimation , mdEnterAnimation ) ;
212207
213- // show to screen readers after animation
214- this . el . removeAttribute ( 'aria-hidden' ) ;
215-
216208 unlock ( ) ;
217209 }
218210
@@ -398,20 +390,16 @@ export class ActionSheet implements ComponentInterface, OverlayInterface {
398390 < div class = "action-sheet-wrapper ion-overlay-wrapper" ref = { ( el ) => ( this . wrapperEl = el ) } >
399391 < div class = "action-sheet-container" >
400392 < div class = "action-sheet-group" ref = { ( el ) => ( this . groupEl = el ) } >
401- { ( header || this . subHeader ) && (
402- < div class = "action-sheet-head" >
403- { header && (
404- < h2
405- id = { headerID }
406- class = { {
407- 'action-sheet-title' : true ,
408- 'action-sheet-has-sub-title' : this . subHeader !== undefined ,
409- } }
410- >
411- { header }
412- </ h2 >
413- ) }
414- { this . subHeader && < h2 class = "action-sheet-sub-title" > { this . subHeader } </ h2 > }
393+ { header !== undefined && (
394+ < div
395+ id = { headerID }
396+ class = { {
397+ 'action-sheet-title' : true ,
398+ 'action-sheet-has-sub-title' : this . subHeader !== undefined ,
399+ } }
400+ >
401+ { header }
402+ { this . subHeader && < div class = "action-sheet-sub-title" > { this . subHeader } </ div > }
415403 </ div >
416404 ) }
417405 { buttons . map ( ( b ) => (
0 commit comments