@@ -365,7 +365,7 @@ export abstract class ViewPane extends Pane implements IView {
365
365
}
366
366
367
367
const calculatedTitle = this . calculateTitle ( title ) ;
368
- this . titleContainer = append ( container , $ ( 'h3.title' , undefined , calculatedTitle ) ) ;
368
+ this . titleContainer = append ( container , $ ( 'h3.title' , { title : calculatedTitle } , calculatedTitle ) ) ;
369
369
370
370
if ( this . _titleDescription ) {
371
371
this . setTitleDescription ( this . _titleDescription ) ;
@@ -379,6 +379,7 @@ export abstract class ViewPane extends Pane implements IView {
379
379
const calculatedTitle = this . calculateTitle ( title ) ;
380
380
if ( this . titleContainer ) {
381
381
this . titleContainer . textContent = calculatedTitle ;
382
+ this . titleContainer . setAttribute ( 'title' , calculatedTitle ) ;
382
383
}
383
384
384
385
if ( this . iconContainer ) {
@@ -393,9 +394,10 @@ export abstract class ViewPane extends Pane implements IView {
393
394
private setTitleDescription ( description : string | undefined ) {
394
395
if ( this . titleDescriptionContainer ) {
395
396
this . titleDescriptionContainer . textContent = description ?? '' ;
397
+ this . titleDescriptionContainer . setAttribute ( 'title' , description ?? '' ) ;
396
398
}
397
399
else if ( description && this . titleContainer ) {
398
- this . titleDescriptionContainer = after ( this . titleContainer , $ ( 'span.description' , undefined , description ) ) ;
400
+ this . titleDescriptionContainer = after ( this . titleContainer , $ ( 'span.description' , { title : description } , description ) ) ;
399
401
}
400
402
}
401
403
0 commit comments