Skip to content

Commit

Permalink
HDS-3919 Add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinLBradley committed Oct 16, 2024
1 parent b01b7df commit 9b35f4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/src/components/hds/alert/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export default class HdsAlert extends Component<HdsAlertSignature> {
`${CONTENT_ELEMENT_SELECTOR} button, ${CONTENT_ELEMENT_SELECTOR} a`
);

// an Alert which actually alerts users (has role="alert" & aria-live="polite") as opposed to an informational or promo "alert"
const isRealAlert: boolean =
this.color === 'warning' ||
this.color === 'critical' ||
Expand Down

0 comments on commit 9b35f4a

Please sign in to comment.