Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Do not render percent sign for indeterminate ProgressToast #1138

Merged

Conversation

thebarrettlo
Copy link
Contributor

Pull Request

πŸ“– Description

The current ProgressToast component renders a percent sign below the progress bar, regardless of whether the progress has a determinate or indeterminate state. This PR updates the ProgressToast component to only render the percent sign if the ProgressToastContent.Progress property is not null.

Current ProgressToast with indeterminate progress bar:
fluentui-blazor ProgressToast indeterminate with percentage

Proposed change to ProgressToast with indeterminate progress bar:
fluentui-blazor ProgressToast indeterminate without percentage

🎫 Issues

No issue has been opened for this UI bug.

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

The changes are viewable in the demo project--the indeterminate progress toast does not have a percent sign while the determinate progress toast still does.

πŸ“‘ Test Plan

Ad-hoc testing through the demo project.

βœ… 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

(Note: there are currently no active tests for Toast components.)

  • I have added a new component
  • I have added Unit Tests for my new compontent
  • I have modified an existing component
  • I have validate Unit Tests for an existing component

⏭ Next Steps

@vnbaaij vnbaaij merged commit d157766 into microsoft:dev Dec 16, 2023
4 checks passed
@geowong2022
Copy link

Hi @dvoituron & @vnbaaij, is there any plan on this for .NET 6? It is not implemented yet.
Thank you very much.

@vnbaaij
Copy link
Collaborator

vnbaaij commented Mar 25, 2024

We missed that one in cherry picking changes for v3. It will be in next v3 release.

vnbaaij pushed a commit that referenced this pull request Mar 25, 2024
* Conditionally renders percent sign in ProgressToast

* Adds example of indeterminate progress toast

---------

Co-authored-by: Barrett Lo <barrettlo@microsoft.com>
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.

None yet

4 participants