Merge pull request #1525 from lunika/play-button-aria
♿️(controls) change play button aria-label value when its state change
			
			
This commit is contained in:
		@ -214,6 +214,7 @@ const ui = {
 | 
				
			|||||||
        // Set state
 | 
					        // Set state
 | 
				
			||||||
        Array.from(this.elements.buttons.play || []).forEach(target => {
 | 
					        Array.from(this.elements.buttons.play || []).forEach(target => {
 | 
				
			||||||
            Object.assign(target, { pressed: this.playing });
 | 
					            Object.assign(target, { pressed: this.playing });
 | 
				
			||||||
 | 
					            target.setAttribute('aria-label', i18n.get(this.playing ? 'pause' : 'play', this.config));
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Only update controls on non timeupdate events
 | 
					        // Only update controls on non timeupdate events
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user