Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views_ui.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Feb 2015 at 20:17 UTC
Updated:
4 Apr 2015 at 14:14 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
idebr commentedAttached patch reintroduces some of the scripting for Views in Drupal 7 to fix the striping. The striping is currently only applied for javascript users, so I didn't change the original table rendering.
Comment #2
bfr commentedSeems good to me.
Comment #3
manuel garcia commentedThis looks good to me, i've been testing it manually, and actualy before we werent even handling this case at all.
This was not doing anything before, but with this patch it is necessary.
Comment #4
dawehnerGiven my limited CSS knowledge, I'm curios, whether the filtering itself could add a class for hidden/not hidden rows and then we use that in the CSS to change the style?
Comment #5
lewisnyman@dawehner Yes, I think we could use a :not(selector) here in theory, but we need to try it in practice, so setting to needs work. It would be a shame to introduce Javascript functionality just for this particular use case, and there an argument whether we need the zebra striping at all, as the Seven style guide remove this in favour of a hover color.
Comment #6
manuel garcia commentedThe problem here is that we can't use
:nth-of-type(even)selector along with:not(selector)... they won't work together unfortunately.So I don't see any other way around this, unless we indeed drop the zebra striping altogether.
Comment #7
idebr commentedHow about we fix the regression first with javascript and continue the discussion on removing the striping in a followup?
Comment #8
nod_Looks ok, can you just move the show() after classes have been messed with? Also since we're messing with things in this function can you reformat the variable declarations to be more in line with the rest:
Transformed to :
And remove those variable from the declaration in the first line.
Comment #9
idebr commented@nod_ Thanks for the review, would lottery again :)
I updated the variable declaration and moved .show().
Comment #10
nod_Thanks :) that works.
Comment #11
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 4a7ab3e and pushed to 8.0.x. Thanks!