backdrop-contrib / views_bootstrap

This module provides a set of styles for the Views module. It allows you to create responsive Bootstrap 3.x components, such as grids, carousels, tabs, and tables, all within the configuration settings of the powerful Views module.
https://backdropcms.org/project/views_bootstrap
GNU General Public License v2.0
0 stars 7 forks source link

Views' labels are not visible because of bootstrap css styles #4

Closed simone960 closed 6 years ago

simone960 commented 6 years ago

I find that the Bootstrap css file is loaded inside the Views where it affect the style of the Views and can't see the labels. Any idea ?

bootstrap views

simone960 commented 6 years ago

I think not only that, the bootstrap js file also loaded and affected the Admin theme. I can't move a menu item to place it under the parent menu. Go to Menu > Primary navigation. You can't do things like drag the "About Us" to place it under "Home".

Home

simone960 commented 6 years ago

Ok, just noticed there's a configuration where Bootstrap styles (css) and scripts (js) can be excluded:

Go to: Configuration > User Interface > Administer Views Bootstrap settings

Here what I configured: Select: All pages except those listed

Specify pages to be excluded by paths, e.g: admin/ node/add/ node/*/edit

bugfolder commented 2 years ago

Just adding an explanatory note here after some discussion that starts at https://github.com/backdrop-contrib/views_bootstrap/issues/27#issuecomment-1181841605. The vanishing labels happens because Bootstrap adds CSS for selector .label, which is applied on the Views admin page if "Preview" is checked (because then the BS libraries are loaded). So there is now a CSS shim, views_bootstrap.css, that contains some CSS that restores the labels to visibility (though not precisely what they were before).