Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xelaint committed Jul 18, 2024
1 parent ba2300f commit 260bf1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions libs/design/modal/src/modal-title/modal-title.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { DaffModalComponent } from '../modal/modal.component';

let modalTitleId = 0;

/**
* Title of a modal.
*/
@Directive({
selector: '[daffModalTitle]',
})
Expand All @@ -32,6 +35,9 @@ export class DaffModalTitleDirective {

this._id = 'daff-modal-title-' + modalTitleId;

/**
* Sets the ariaLabelledBy of the modal to the id of the modal title.
*/
if(this.modal) {
this.modal.ariaLabelledBy = this.uniqueId;
}
Expand Down
2 changes: 1 addition & 1 deletion libs/design/modal/src/modal/modal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class DaffModalComponent implements AfterContentInit, AfterViewInit {
private _ariaLabelledBy = null;

/**
* The aria-labelledby of modal. This will automatically be set to
* The aria-labelledby for the modal. This is set by the id of
* {@link DaffModalTitleDirective} when it is used.
*
*/
Expand Down

0 comments on commit 260bf1a

Please sign in to comment.