Skip to content

Commit

Permalink
fix(core): notification a11y improvements (#12752)
Browse files Browse the repository at this point in the history
Co-authored-by: deno <[email protected]>
  • Loading branch information
mikerodonnell89 and droshev authored Nov 25, 2024
1 parent c8d6317 commit 8a41b6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { Directive } from '@angular/core';
selector: '[fdNotificationPopover], [fd-notification-popover]',
standalone: true,
host: {
class: 'fd-notification-popover'
class: 'fd-notification-popover',
role: 'dialog'
}
})
export class NotificationPopoverDirective {}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<div [style.min-height.px]="500">
<fd-popover [noArrow]="false">
<fd-popover [noArrow]="false" [focusTrapped]="true" [focusAutoCapture]="true">
<fd-popover-control>
<button fd-button label="Open Notification Group"></button>
</fd-popover-control>
<fd-popover-body>
<div fd-notification-popover>
<div fd-notification-popover aria-labelledby="fd-notification-title-1">
<fd-toolbar fdType="transparent" [clearBorder]="true">
<h4 fd-title>Notifications(30)</h4>
<h4 fd-title id="fd-notification-title-1">Notifications (30)</h4>
<fd-toolbar-spacer></fd-toolbar-spacer>
<button fd-button label="Clear All" fdType="transparent" ariaLabel="Clear All"></button>
<button
Expand Down

0 comments on commit 8a41b6f

Please sign in to comment.