Skip to content

feat: Hoist intent to imperative API#28224

Merged
ling1726 merged 7 commits intomicrosoft:masterfrom
ling1726:react-toast/feat/style-polish
Jun 15, 2023
Merged

feat: Hoist intent to imperative API#28224
ling1726 merged 7 commits intomicrosoft:masterfrom
ling1726:react-toast/feat/style-polish

Conversation

@ling1726
Copy link
Contributor

@ling1726 ling1726 commented Jun 15, 2023

Hoists the intent prop used by the ToastTitle to the imperative API, so that default aria-live politeness can be set based on intent.

Also adds colors to the ToastTitle icon based on intent, unavailable tokens are labelled with FIXME

Addresses #26638

ling1726 added 2 commits June 15, 2023 09:28
Adds colors to the ToastTitle icon based on intent, unavailable tokens
are labelled with FIXME
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 15, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e4f2471:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@fabricteam
Copy link
Collaborator

fabricteam commented Jun 15, 2023

📊 Bundle size report

🤖 This report was generated against eb359d9b090fb150ba6a2f948f34de8456ec4a53

@size-auditor
Copy link

size-auditor bot commented Jun 15, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: eb359d9b090fb150ba6a2f948f34de8456ec4a53 (build)

@ling1726 ling1726 changed the title feat: Add ToastTitle intent colors feat: Hoist intent to imperative API Jun 15, 2023
@ling1726 ling1726 marked this pull request as ready for review June 15, 2023 08:41
@ling1726 ling1726 requested a review from a team as a code owner June 15, 2023 08:41
@ling1726 ling1726 merged commit 4e1badf into microsoft:master Jun 15, 2023
ling1726 added a commit to ling1726/fluentui that referenced this pull request Jun 15, 2023
Fix of bug from microsoft#28224

The intent prop is not actually required because of `?` in the type.
While this is true for creation, it should always be present when passed
to context (even if it's undefined).
ling1726 added a commit that referenced this pull request Jun 15, 2023
* fix: Toast intent should always be present in the context

Fix of bug from #28224

The intent prop is not actually required because of `?` in the type.
While this is true for creation, it should always be present when passed
to context (even if it's undefined).

* fix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants