File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -167,13 +167,25 @@ export const handleToolbarIntersection = (
167167
168168export const setHeaderActive = ( headerIndex : HeaderIndex , active = true ) => {
169169 const headerEl = headerIndex . el ;
170+ const toolbars = headerIndex . toolbars ;
171+ const ionTitles = toolbars . map ( ( toolbar ) => toolbar . ionTitleEl ) ;
170172
171173 if ( active ) {
172174 headerEl . classList . remove ( 'header-collapse-condense-inactive' ) ;
173- headerEl . removeAttribute ( 'aria-hidden' ) ;
175+
176+ ionTitles . forEach ( ( ionTitle ) => {
177+ if ( ionTitle ) {
178+ ionTitle . removeAttribute ( 'aria-hidden' ) ;
179+ }
180+ } ) ;
174181 } else {
175182 headerEl . classList . add ( 'header-collapse-condense-inactive' ) ;
176- headerEl . setAttribute ( 'aria-hidden' , 'true' ) ;
183+
184+ ionTitles . forEach ( ( ionTitle ) => {
185+ if ( ionTitle ) {
186+ ionTitle . setAttribute ( 'aria-hidden' , 'true' ) ;
187+ }
188+ } ) ;
177189 }
178190} ;
179191
You can’t perform that action at this time.
0 commit comments