Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export const ASYNC_WRAPPER_PARAMETERS$ = new InjectionToken<Observable<LoadAsync
</ng-container>
<ng-container *ngSwitchDefault>
<ht-message-display
aria-live="polite"
role="alert"
[attr.data-alert-type]="state.type === '${LoadAsyncStateType.GenericError}' ? 'failure' : 'no-data'"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use the NotificationMode enum here for the failure string?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

[icon]="this.icon"
[title]="this.title"
[description]="this.description"
Expand Down
3 changes: 2 additions & 1 deletion projects/components/src/not-found/not-found.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ButtonRole, ButtonStyle } from '../button/button';
styleUrls: ['./not-found.component.scss'],
template: `
<div class="not-found-container fill-container">
<div class="not-found-content">
<div class="not-found-content" role="alert" aria-live="assertive" [attr.data-alert-type]="'failure'">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

<img class="not-found-image" src="${ImagesAssetPath.ErrorPage}" loading="lazy" alt="not found page" />
<div class="not-found-message-wrapper">
<div class="not-found-text-wrapper">
Expand All @@ -30,6 +30,7 @@ import { ButtonRole, ButtonStyle } from '../button/button';
})
export class NotFoundComponent {
public constructor(private readonly navService: NavigationService) {}

public goHome(): void {
this.navService.navigateToHome();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { IconSize } from '../icon/icon-size';
styleUrls: ['./notification.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
<div class="notification-container">
<div class="notification-container" role="alert" aria-live="polite" [attr.data-alert-type]="this.data.mode">
<ht-icon
[ngClass]="this.data.mode"
class="status-icon"
Expand Down