-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from lolsteve/progressbar_percentage
Changed progress bar width to be a percentage
- Loading branch information
Showing
2 changed files
with
41 additions
and
13 deletions.
There are no files selected for viewing
52 changes: 40 additions & 12 deletions
52
src/components/Torrent/ProgressBar/__tests__/__snapshots__/index.spec.js.snap
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 |
---|---|---|
@@ -1,35 +1,63 @@ | ||
exports[`test ProgressBar leeching 1`] = ` | ||
<div | ||
className="progressBar leeching"> | ||
<progress | ||
max="100" | ||
value={50} /> | ||
<div | ||
aria-valuemax="100" | ||
aria-valuemin="0" | ||
aria-valuenow={50} | ||
role="progressbar" | ||
style={ | ||
Object { | ||
"width": "50%", | ||
} | ||
} /> | ||
</div> | ||
`; | ||
|
||
exports[`test ProgressBar magnet 1`] = ` | ||
<div | ||
className="progressBar magnet"> | ||
<progress | ||
max="100" | ||
value={50} /> | ||
<div | ||
aria-valuemax="100" | ||
aria-valuemin="0" | ||
aria-valuenow={50} | ||
role="progressbar" | ||
style={ | ||
Object { | ||
"width": "50%", | ||
} | ||
} /> | ||
</div> | ||
`; | ||
|
||
exports[`test ProgressBar paused 1`] = ` | ||
<div | ||
className="progressBar paused"> | ||
<progress | ||
max="100" | ||
value={50} /> | ||
<div | ||
aria-valuemax="100" | ||
aria-valuemin="0" | ||
aria-valuenow={50} | ||
role="progressbar" | ||
style={ | ||
Object { | ||
"width": "50%", | ||
} | ||
} /> | ||
</div> | ||
`; | ||
|
||
exports[`test ProgressBar seeding 1`] = ` | ||
<div | ||
className="progressBar seeding"> | ||
<progress | ||
max="100" | ||
value={50} /> | ||
<div | ||
aria-valuemax="100" | ||
aria-valuemin="0" | ||
aria-valuenow={50} | ||
role="progressbar" | ||
style={ | ||
Object { | ||
"width": "50%", | ||
} | ||
} /> | ||
</div> | ||
`; |
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