File tree Expand file tree Collapse file tree 4 files changed +9
-26
lines changed Expand file tree Collapse file tree 4 files changed +9
-26
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ const StandaloneProgressBar = () => {
17
17
if ( value <= 100 ) {
18
18
setprogressState ( {
19
19
audibleFeedback : completed
20
- ? "Your file upload has completed. "
21
- : "Your file is uplaoding. " ,
20
+ ? "Your file upload has completed"
21
+ : "Your file is uploadings " ,
22
22
description : completed
23
- ? "Your file has been uploaded. "
24
- : `Your file is ${ value } % uploaded. ` ,
23
+ ? "Your file has been uploaded"
24
+ : `Your file is ${ value } % uploaded` ,
25
25
value : completed ? 100 : value + 1
26
26
} ) ;
27
27
}
@@ -39,7 +39,7 @@ const StandaloneProgressBar = () => {
39
39
id = "progress-bar"
40
40
label = "Uploading"
41
41
ref = { progressEl }
42
- tooltip = "top "
42
+ tooltip = "bottom "
43
43
value = { progressState . value }
44
44
/>
45
45
</ div >
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ RadioButtonInput.propTypes = {
53
53
id : PropTypes . string . isRequired ,
54
54
label : PropTypes . string . isRequired ,
55
55
name : PropTypes . string . isRequired ,
56
- onChange : PropTypes . func . isRequired ,
56
+ onChange : PropTypes . func ,
57
57
selected : PropTypes . bool ,
58
58
value : PropTypes . string . isRequired
59
59
} ;
Original file line number Diff line number Diff line change 1
- import React , { useEffect , useRef } from "react" ;
1
+ import React from "react" ;
2
2
import ProgressBar from "../lib/components/ProgressBar/ProgressBar.js" ;
3
3
import StandaloneProgressBar from "../lib/components/ProgressBar/StandaloneProgressBar.js" ;
4
4
5
5
const ProgressBarPage = ( ) => {
6
- const ref = useRef ( null ) ;
7
-
8
- useEffect ( ( ) => {
9
- ref . current . focus ( ) ;
10
- } ) ;
11
-
12
6
return (
13
7
< div >
14
8
< h1 > Progress Bar</ h1 >
@@ -36,7 +30,6 @@ const ProgressBarPage = () => {
36
30
description = "You have encountered 25 out of 100 words in Level 3."
37
31
id = "pb3"
38
32
label = "Level 3"
39
- ref = { ref }
40
33
tooltip = "top"
41
34
value = { 25 }
42
35
/>
@@ -60,18 +53,7 @@ const ProgressBarPage = () => {
60
53
/>
61
54
</ div >
62
55
</ div >
63
- < div className = "section" >
64
- < ProgressBar
65
- description = "Full width progress bar"
66
- id = "pb6"
67
- label = "Uploading"
68
- tooltip = "bottom"
69
- value = { 45 }
70
- />
71
- </ div >
72
- < div className = "section" >
73
- < StandaloneProgressBar />
74
- </ div >
56
+ < StandaloneProgressBar />
75
57
</ div >
76
58
) ;
77
59
} ;
Original file line number Diff line number Diff line change @@ -555,6 +555,7 @@ $file-browser-height: 2rem;
555
555
outline : none ;
556
556
}
557
557
558
+ & :focus ,
558
559
& :hover {
559
560
.progress-meter {
560
561
background-color : $blue ;
You can’t perform that action at this time.
0 commit comments