Skip to content
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

Merged
merged 2 commits into from
Jul 6, 2014
Merged

assign background to row of .table-striped #13920

merged 2 commits into from
Jul 6, 2014

Conversation

AndreiRailean
Copy link
Contributor

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

if background is not set on row, striping doesn't work properly in responsive tables where row and cells are set to  display: block.
@cvrebert cvrebert added the css label Jun 25, 2014
@cvrebert cvrebert added this to the v3.2.1 milestone Jun 25, 2014
@@ -106,6 +106,7 @@ th {

.table-striped {
> tbody > tr:nth-child(odd) {
background-color: @table-bg-accent;
> td,
> th {
background-color: @table-bg-accent;
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

@AndreiRailean
Copy link
Contributor Author

update committed @cvrebert
i guess table-row mixins need to be looked as well

@mdo
Copy link
Member

mdo commented Jun 26, 2014

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.

@mdo mdo added the confirmed label Jun 26, 2014
@AndreiRailean
Copy link
Contributor Author

do you guys want me to add more to this or what's the process from here?

@mdo
Copy link
Member

mdo commented Jul 3, 2014

I just need to review more. Hoping to get into v3.2.1 (and release that in early to mid August).

mdo added a commit that referenced this pull request Jul 6, 2014
assign background to row of .table-striped
@mdo mdo merged commit b4b82e8 into twbs:master Jul 6, 2014
@cvrebert cvrebert mentioned this pull request Jul 6, 2014
stempler pushed a commit to stempler/bootstrap that referenced this pull request Nov 4, 2014
assign background to row of .table-striped
@AndreiRailean AndreiRailean deleted the patch-1 branch November 30, 2014 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants