-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assign background to row of .table-striped #13920
Conversation
if background is not set on row, striping doesn't work properly in responsive tables where row and cells are set to display: block.
@@ -106,6 +106,7 @@ th { | |||
|
|||
.table-striped { | |||
> tbody > tr:nth-child(odd) { | |||
background-color: @table-bg-accent; | |||
> td, | |||
> th { | |||
background-color: @table-bg-accent; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't that make this rule redundant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess td and th backgrounds can be removed
not sure why the original decision was to style the cells, not the rows
in fact the rows aren't styled anywhere.
update committed @cvrebert |
Ah, I see it. In Safari, I see the striping but only for the cells that are currently in view. Anything overflowed that needs scrolling to see is fubared. |
do you guys want me to add more to this or what's the process from here? |
I just need to review more. Hoping to get into v3.2.1 (and release that in early to mid August). |
assign background to row of .table-striped
assign background to row of .table-striped
if background is not set on row, striping doesn't work properly in responsive tables where row and cells are set to display: block.
sorry, no bug report - jumped straight to fixing
bin
http://jsbin.com/cuyov/1/edit?html,css,output