Skip to content

Conversation

@pmi24
Copy link
Contributor

@pmi24 pmi24 commented Sep 29, 2025

Pull Request

πŸ“– Description

Add Class & Style parameters to the FluentToast component, via ToastParameters.

🎫 Issues

πŸ‘©β€πŸ’» Reviewer Notes

πŸ“‘ Test Plan

βœ… Checklist

General

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

  • I have added a new component
  • I have added Unit Tests for my new component
  • I have modified an existing component
  • I have validated the Unit Tests for an existing component

⏭ Next Steps

@pmi24
Copy link
Contributor Author

pmi24 commented Sep 29, 2025

@microsoft-github-policy-service agree

Copy link
Collaborator

@vnbaaij vnbaaij left a comment

Choose a reason for hiding this comment

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

We don't have a component called [MenuToast]. Please adjust the docs.

Also provide an example of using this please. Can be a copy of an already existing example.

@pmi24 pmi24 changed the title [MenuToast] Add Class & Style properties [FluentToast] Add Class & Style properties Sep 29, 2025
@pmi24
Copy link
Contributor Author

pmi24 commented Sep 29, 2025

We don't have a component called [MenuToast]. Please adjust the docs.

Also provide an example of using this please. Can be a copy of an already existing example.

Sorry for that unnecessary copy/paste mistake ... the right component is [FluentToast]. I adjusted the pr accordingly.

Example:

var toastParams = new ToastParameters<CommunicationToastContent>()
{
    Intent = ToastIntent.Info,
    Title = "My Toast",
    Class = "my-custom-class",
    Style = "color: red;",
    Content = new CommunicationToastContent()
    {
        Details = "My Message"
    },
};

ToastService?.ShowCommunicationToast(toastParams);

@vnbaaij vnbaaij enabled auto-merge (squash) September 29, 2025 12:11
@vnbaaij vnbaaij merged commit 42e0445 into microsoft:dev Sep 29, 2025
2 checks passed
@vnbaaij vnbaaij changed the title [FluentToast] Add Class & Style properties [Toast] Add Class & Style properties Oct 6, 2025
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.

3 participants