Problem/Motivation

We can improve handling of views exposed forms and entity browser tabs.
Views exposed forms are a bit of the mess when there is a lot of them.
Entity browser tabs should use Bootstrap nav-tabs CSS classes.

Proposed resolution

Add flex layout CSS rules for views exposed forms.
Add nav-tabs CSS classes for entity browser tabs.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pivica created an issue. See original summary.

pivica’s picture

Here is a first patch. Also added 'views__pager' helper CSS class to mini pager so you can add CSS layout rules easer to it.

pivica’s picture

Updated patch against latest dev.

pivica’s picture

Issue tags: +next-release-planned
sasanikolic’s picture

Here is the patch against latest dev.

sasanikolic’s picture

Status: Active » Needs review
pivica’s picture

Status: Needs review » Needs work
  1. +++ b/themes/bs_bootstrap/js/entity-browser.tabs.js
    @@ -0,0 +1,46 @@
    + * Navigation bar improvements and tweaks.
    + *
    + * The biggest addition is support for 3 levels of depth for small screens.
    

    Comments need fixing:

    "Use Bootstrap tabs for EB tabs".

  2. +++ b/themes/bs_bootstrap/js/entity-browser.tabs.js
    @@ -0,0 +1,46 @@
    +})(jQuery, Drupal);
    

    Missing new line.

  3. +++ b/themes/bs_bootstrap/templates/views/views-exposed-form.html.twig
    @@ -0,0 +1,23 @@
    +</div>
    

    Missing new line.

pivica’s picture

Here is a new patch based on the latest feedback. I think this is good to go now.

pivica’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
7.5 KB
4.59 KB

Noticed various problems with datetime field. That is improved. Also increased horizontal gap in inline forms and refactored/improved CSS. Removed new div wrapper and form-inline-group CSS class is now added directly to the form element.

pivica’s picture

Added form-item class to datetime-wrapper and apply margin bottom reset for datetime for all screens.

pivica’s picture

Added $form-inline-group-gutter SASS variable. Actions should use the same gutter value.

pivica’s picture

  • pivica committed 5bbfc98 on 8.x-1.x
    Issue #2998225 by pivica, sasanikolic: Visually improve views exposed...
pivica’s picture

Committed.

pivica’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.