mirror of
				https://github.com/twbs/bootstrap.git
				synced 2022-11-09 12:25:43 -05:00 
			
		
		
		
	Slow down spinners when prefers-reduced-motion: reduce (#31882)
				
					
				
			* feature(spinners): slow down spinners when prefers-reduced-motion * docs(spinners): add reduced motion callout and mention slowing down in accessibility page * Update spinners.md * docs(accessibility): rewording Co-authored-by: XhmikosR <xhmikosr@gmail.com> Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk>
This commit is contained in:
		
							parent
							
								
									e0a3b7ef0d
								
							
						
					
					
						commit
						ece40bcd11
					
				
					 3 changed files with 14 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -54,3 +54,12 @@
 | 
			
		|||
  width: $spinner-width-sm;
 | 
			
		||||
  height: $spinner-height-sm;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@if $enable-reduced-motion {
 | 
			
		||||
  @media (prefers-reduced-motion: reduce) {
 | 
			
		||||
    .spinner-border,
 | 
			
		||||
    .spinner-grow {
 | 
			
		||||
      animation-duration: $spinner-animation-speed * 2;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue