-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client(fix): dialog-tooltip a11y (#698)
- Loading branch information
Showing
5 changed files
with
56 additions
and
25 deletions.
There are no files selected for viewing
29 changes: 21 additions & 8 deletions
29
client/src/app/demo/dialog-tooltip-demo/dialog-tooltip-demo.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,34 @@ | ||
<p> | ||
Open dialog tooltip with content as string | ||
<mat-icon | ||
style="vertical-align: bottom" | ||
Open dialog tooltip using content as string | ||
|
||
<button | ||
type="button" | ||
class="gbl-button-less gbl-link align-middle" | ||
appDialogTooltip | ||
ariaLabelFromDialogTitle | ||
dialogTitle="Dialog tooltip" | ||
dialogContent="Dialog content as string." | ||
> | ||
lightbulb | ||
</mat-icon> | ||
<mat-icon>lightbulb</mat-icon> | ||
</button> | ||
</p> | ||
|
||
<p> | ||
Open dialog tooltip with content as template | ||
<mat-icon appDialogTooltip dialogTitle="Dialog tooltip" [dialogContent]="dialogTooltipTemplate">lightbulb</mat-icon> | ||
Open dialog tooltip using content as template | ||
|
||
<button | ||
type="button" | ||
class="gbl-button-less gbl-link align-middle" | ||
appDialogTooltip | ||
ariaLabelFromDialogTitle | ||
dialogTitle="Dialog tooltip" | ||
[dialogContent]="dialogTooltipTemplate" | ||
> | ||
<mat-icon>lightbulb</mat-icon> | ||
</button> | ||
|
||
<ng-template #dialogTooltipTemplate> | ||
<mat-icon>beach_access</mat-icon> | ||
<mat-icon class="me-1 align-middle">beach_access</mat-icon> | ||
Dialog content as template. | ||
</ng-template> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters