File tree Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -10,36 +10,31 @@ export default {
10
10
tag: {
11
11
type: String ,
12
12
default: ' span'
13
- },
14
- labelText: {
15
- type: String ,
16
- default: ' Loading...'
17
13
}
18
14
},
19
- render (h , { props, data, slots }) {
20
- const label = h (' span' , { staticClass: ' c-sr-only' }, props .labelText )
15
+ render (h , { props, data }) {
21
16
const type = props .grow ? ' grow' : ' border'
22
17
return h (
23
18
props .tag ,
24
19
mergeData (data, {
25
20
attrs: {
26
21
role: ' status' ,
27
- ' aria-hidden' : label ? null : ' true'
22
+ ' aria-hidden' : ' false' ,
23
+ ' aria-label' : ' Loading'
28
24
},
29
- class: [` c-spinner- ${ type } ` ,
30
- {
31
- [ ` c-spinner- ${ type } -sm ` ] : props . small ,
32
- [` c-text -${ props . variant } ` ]: Boolean ( props .variant )
33
- }
34
- ]
35
- }),
36
- [label]
25
+ class: [
26
+ ` c-spinner- ${ type } ` ,
27
+ {
28
+ [` c-spinner -${ type } -sm ` ]: props .small ,
29
+ [ ` c-text- ${ props . variant } ` ] : Boolean ( props . variant )
30
+ }
31
+ ]
32
+ })
37
33
)
38
34
}
39
35
}
40
36
</script >
41
37
42
38
<style scoped lang="scss">
43
39
@import " ~@coreui/coreui/scss/partials/spinners.scss" ;
44
- @import " ~@coreui/coreui/scss/utilities/_screenreaders.scss" ;
45
40
</style >
You can’t perform that action at this time.
0 commit comments