File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 3131 />
3232 </div >
3333 <template v-if =" controlBtn " >
34- <button class =" slider-btn slider-btn-left" @click.stop =" prev" >
35- <i class =" slider-icon slider-icon-left" />
34+ <button class =" slider-btn slider-btn-left" :aria-label = " prevBtnLabel " @click.stop =" prev" >
35+ <i class =" slider-icon slider-icon-left" aria-hidden = " true " />
3636 </button >
37- <button class =" slider-btn slider-btn-right" @click.stop =" next" >
38- <i class =" slider-icon slider-icon-right" />
37+ <button class =" slider-btn slider-btn-right" :aria-label = " nextBtnLabel " @click.stop =" next" >
38+ <i class =" slider-icon slider-icon-right" aria-hidden = " true " />
3939 </button >
4040 </template >
4141 </div >
@@ -104,6 +104,14 @@ export default {
104104 type: Function ,
105105 default : () => true ,
106106 },
107+ prevBtnLabel: {
108+ type: String ,
109+ default: ' Previous slide' ,
110+ },
111+ nextBtnLabel: {
112+ type: String ,
113+ default: ' Next slide' ,
114+ },
107115 },
108116 data () {
109117 return {
You can’t perform that action at this time.
0 commit comments