fix: Do not render percent sign for indeterminate ProgressToast #1138
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 theProgressToast
component to only render the percent sign if theProgressToastContent.Progress
property is not null.Current
ProgressToast
with indeterminate progress bar:Proposed change to
ProgressToast
with indeterminate progress bar:π« 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
Component-specific
(Note: there are currently no active tests for Toast components.)
β Next Steps