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 Jun 2013 at 09:30 UTC
Updated:
29 Jul 2014 at 22:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
vollepeer commentedWhere exactly are these styles used in the admin interface?
Comment #2
yesct commentedWe looked for this css in views to see why it was being added and could not find it. We asked @dawehner where it came from and found it used to be needed when something was coming in from d7 ctools. But it's not used anymore and can be removed.
---
Next step.
Make a patch to remove those styles.
https://drupal.org/contributor-tasks/create-patch
Comment #3
R.Hendel commentedI'm in Dublin and try to make this patch.
If it works, it will be my first one :-)
Comment #4
R.Hendel commentedI removed this code from core/modules/views_ui/css/views_ui.admin.css:
I took a screenshot after removing css and it looks alright to me. You'll find it attached...
Comment #5
R.Hendel commentedComment #6
R.Hendel commentedComment #7
yesct commentedthis looks ok to me.
I tried to find where the old ctools classes might have been, to see where they were removed, but got as far as:
a blame on line 457 in
http://drupalcode.org/project/drupal.git/blame/HEAD:/core/modules/views/...
showed it was added in
"Add the 7.x-3.x Views branch."
git checkout a626abb
and then
ag "horizontal" *
told me (among other things)
I was hoping to find the places horizontal was used in views so I could make sure it was not needed anywhere, but I think @dawehner saying it's not used anymore might be enough. And I'm a bit confused if I even need to try so hard to find the old stuff and show it's gone. :)
Comment #8
yesct commentedThis issue was RTBC and passing tests on July 1, the beginning of API freeze.
Comment #9
alexpottI've searched views_ui for horizontal... it appears that it's not used anywhere... but it is in some more css!
In
views_ui.admin.theme.cssAfaics these should be removed as well... but of course this needs manual testing
Comment #10
R.Hendel commentedComment #11
R.Hendel commentedIn this patch I removed css-lines concerning to #9.
Because the old patch from #4 does no longer work I removed thoses lines again manually.
The reason why old patch failed are the quotation marks which must have been added in the meantime to css-attriutes in 8.x core:
So I made no interdiff against old patch.
For testing:
- I created a view and activated option "Expose this filter to visitors, to allow them to change it"
- I compared views-ui page patched and unpatched and found no differences.
- I compared views rendered result page patched and unpatched and found also no differences.
- I searched with firebug for ".horizontal" in html-source and found it only in body or in relation with toolbar.
So I think it should be ok now.
Attached you find screenshots:
Comment #12
tstoecklerCode looks good, still needs some manual testing from someone else, methinks.
Comment #13
dawehnerI think most of this css was written by jessebeach, so it would help if she could review all this deletions.
Comment #14
R.Hendel commentedTested patch from #11 agains latest 8.x: it is still applyable.
Comment #15
jessebeach commentedIn my queue to review.
Comment #16
jessebeach commentedI checked and checked and couldn't find any references to the
.horizontalclass. It seems to have been replaced with.views-display-setting, but these unused CSS selectors weren't removed at the same time. I ran a CSS selector audit in Chrome and verified that these selectors aren't used (at least where I looked). I'm fairly confident these are vestigial.Comment #17
alexpottCommitted fedfd49 and pushed to 8.x. Thanks!