Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Views provides a lot of CSS for the views UI that needs to be removed if we want to style views UI like bootstrap.
Proposed resolution
Find out how to best remove the CSS.
Remaining tasks
Create patch.
User interface changes
Views will look more like bootstrap
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#4 | 2828855-override-views-4.patch | 59.36 KB | tkoleary |
#3 | 2828855-override-views-1.patch | 58.75 KB | tkoleary |
Comments
Comment #2
tkoleary CreditAttribution: tkoleary at Acquia commentedI've done some initial work on this. First I attempted to use libraries override to remove views ui css but was unsucessful.
Then after looking at the views CSS it occurred to me that perhaps that was not the best approach and I should copy the views css and selectively override only the parts of views that were creating problems. This has the advantage of making sure we are using the same selectors.
Comment #3
tkoleary CreditAttribution: tkoleary at Acquia commentedThis patch also removes the bootstrap framework files and the compiled css.
Comment #4
tkoleary CreditAttribution: tkoleary at Acquia commentedRe-rolled #3 on top of patch #7 from [#11786797]
Comment #5
markhalliwellWhy is this duplicating the efforts in #2828158: Build 8.x version as a bootstrap sub-theme?
Comment #6
tkoleary CreditAttribution: tkoleary at Acquia commentedIt's not so much duplicating the efforts, I just rolled on top of the other patch because otherwise there's nothing there, and it seemed to make sense for this to be a separate issue since it's specific to views.
I can move it all in to the other patch if you think that's a better approach.
Comment #7
markhalliwellOk.. it just doesn't make a whole lot of sense to have two issues/patches doing the same work (even if this one just adds on top of the other).
I'd say let's keep this issue/code entirely separate from the other. Since this already has that issue assigned as the parent, leaving as postponed/blocked until that gets in.
Comment #8
tkoleary CreditAttribution: tkoleary at Acquia commentedOk, sound good.