-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alert - labelling dismiss action, to prevent narrate "unlabeled" butt…
…on (#16092) * labelling dismiss action, in order prevent to narrate unlabelled button * adding recommendation into `do` section * amending changelog Co-authored-by: Milan Turon <mituron@microsoft.com>
- Loading branch information
Showing
8 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
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
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
9 changes: 8 additions & 1 deletion
9
...ges/fluentui/docs/src/examples/components/Alert/Variations/AlertExampleOofs.shorthand.tsx
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,6 +1,13 @@ | ||
import * as React from 'react'; | ||
import { Alert } from '@fluentui/react-northstar'; | ||
|
||
const AlertExampleOof = () => <Alert content="This is an oof alert" dismissible variables={{ oof: true }} />; | ||
const AlertExampleOof = () => ( | ||
<Alert | ||
content="This is an oof alert" | ||
dismissible | ||
dismissAction={{ 'aria-label': 'close' }} | ||
variables={{ oof: true }} | ||
/> | ||
); | ||
|
||
export default AlertExampleOof; |
9 changes: 8 additions & 1 deletion
9
...s/fluentui/docs/src/examples/components/Alert/Variations/AlertExampleUrgent.shorthand.tsx
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,6 +1,13 @@ | ||
import * as React from 'react'; | ||
import { Alert } from '@fluentui/react-northstar'; | ||
|
||
const AlertExampleUrgent = () => <Alert content="This is an urgent alert" dismissible variables={{ urgent: true }} />; | ||
const AlertExampleUrgent = () => ( | ||
<Alert | ||
content="This is an urgent alert" | ||
dismissible | ||
dismissAction={{ 'aria-label': 'close' }} | ||
variables={{ urgent: true }} | ||
/> | ||
); | ||
|
||
export default AlertExampleUrgent; |