-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Progress): use correct width for value/total (#2503)
* fix(Progress): adds condition to display percentage when progress='value' and total is defined * docs(Progress): add example of progress bar with progress='value' and total defined * lint error fix * adding simpler example
- Loading branch information
1 parent
96ad076
commit da7d96f
Showing
4 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
docs/app/Examples/modules/Progress/Content/ProgressExampleProgressValuePercentageOfTotal.js
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react' | ||
import { Progress } from 'semantic-ui-react' | ||
|
||
const ProgressExampleProgressValuePercentageOfTotal = () => ( | ||
<Progress progress='value' value={35} total={50} /> | ||
) | ||
|
||
export default ProgressExampleProgressValuePercentageOfTotal |
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