mirror of https://github.com/twbs/bootstrap.git
				
				
				
			Fixes #12901: Refactors list group active state for use on non-anchors
This commit is contained in:
		
							parent
							
								
									fdbeefff59
								
							
						
					
					
						commit
						10eb167e35
					
				| 
						 | 
				
			
			@ -5849,24 +5849,24 @@ a.list-group-item:focus {
 | 
			
		|||
  background-color: #f5f5f5;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
a.list-group-item.active,
 | 
			
		||||
a.list-group-item.active:hover,
 | 
			
		||||
a.list-group-item.active:focus {
 | 
			
		||||
.list-group-item.active,
 | 
			
		||||
.list-group-item.active:hover,
 | 
			
		||||
.list-group-item.active:focus {
 | 
			
		||||
  z-index: 2;
 | 
			
		||||
  color: #fff;
 | 
			
		||||
  background-color: #428bca;
 | 
			
		||||
  border-color: #428bca;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
a.list-group-item.active .list-group-item-heading,
 | 
			
		||||
a.list-group-item.active:hover .list-group-item-heading,
 | 
			
		||||
a.list-group-item.active:focus .list-group-item-heading {
 | 
			
		||||
.list-group-item.active .list-group-item-heading,
 | 
			
		||||
.list-group-item.active:hover .list-group-item-heading,
 | 
			
		||||
.list-group-item.active:focus .list-group-item-heading {
 | 
			
		||||
  color: inherit;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
a.list-group-item.active .list-group-item-text,
 | 
			
		||||
a.list-group-item.active:hover .list-group-item-text,
 | 
			
		||||
a.list-group-item.active:focus .list-group-item-text {
 | 
			
		||||
.list-group-item.active .list-group-item-text,
 | 
			
		||||
.list-group-item.active:hover .list-group-item-text,
 | 
			
		||||
.list-group-item.active:focus .list-group-item-text {
 | 
			
		||||
  color: #e1edf7;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
				
			
			@ -4695,22 +4695,22 @@ a.list-group-item:focus {
 | 
			
		|||
  text-decoration: none;
 | 
			
		||||
  background-color: #f5f5f5;
 | 
			
		||||
}
 | 
			
		||||
a.list-group-item.active,
 | 
			
		||||
a.list-group-item.active:hover,
 | 
			
		||||
a.list-group-item.active:focus {
 | 
			
		||||
.list-group-item.active,
 | 
			
		||||
.list-group-item.active:hover,
 | 
			
		||||
.list-group-item.active:focus {
 | 
			
		||||
  z-index: 2;
 | 
			
		||||
  color: #fff;
 | 
			
		||||
  background-color: #428bca;
 | 
			
		||||
  border-color: #428bca;
 | 
			
		||||
}
 | 
			
		||||
a.list-group-item.active .list-group-item-heading,
 | 
			
		||||
a.list-group-item.active:hover .list-group-item-heading,
 | 
			
		||||
a.list-group-item.active:focus .list-group-item-heading {
 | 
			
		||||
.list-group-item.active .list-group-item-heading,
 | 
			
		||||
.list-group-item.active:hover .list-group-item-heading,
 | 
			
		||||
.list-group-item.active:focus .list-group-item-heading {
 | 
			
		||||
  color: inherit;
 | 
			
		||||
}
 | 
			
		||||
a.list-group-item.active .list-group-item-text,
 | 
			
		||||
a.list-group-item.active:hover .list-group-item-text,
 | 
			
		||||
a.list-group-item.active:focus .list-group-item-text {
 | 
			
		||||
.list-group-item.active .list-group-item-text,
 | 
			
		||||
.list-group-item.active:hover .list-group-item-text,
 | 
			
		||||
.list-group-item.active:focus .list-group-item-text {
 | 
			
		||||
  color: #e1edf7;
 | 
			
		||||
}
 | 
			
		||||
.list-group-item-success {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
				
			
			@ -64,7 +64,9 @@ a.list-group-item {
 | 
			
		|||
    text-decoration: none;
 | 
			
		||||
    background-color: @list-group-hover-bg;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.list-group-item {
 | 
			
		||||
  // Active class on item itself, not parent
 | 
			
		||||
  &.active,
 | 
			
		||||
  &.active:hover,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue