Encourage use of classes in view, display, rows, fields.
See also: Views admin.
Examples
Faceted search
https://www.drupalarchitect.info/module
Table w/ filters
https://www.retrograde.bike/parts
Templates
views-view-unformated.html.twig, views-view-list.html.twig.
Removed h3 tag, just print {{ title }}. Group headings must be configured in rewrite text for the grouping field.
Issue for making the grouping header customizable:
View on Drupal.org #1383696Allow a custom HTML element to be selected for a grouping field Status: Needs work
Utilities
Section Header
Underline, italic, right aligned.
Used as subgroup class.
Set position: relative on parent element for sticky position.
Examples
https://www.andrewsclasses.com/courses
https://www.drupalarchitect.info/
Misc
Tags
Taxonomy terms can be prefixed with # by rewriting the field with #{{ field_tags }}.
Grouping
Views has a basic grouping template.
You can add a wrapper in here around the title and grouped content.
Group title is also printed in the views style template as an h3.
The h3 has been removed from style templates.
Group headers must be set in the views field rewrite. Style settings don't seem to work.
Issues:
View on Drupal.org #3344034Remove remaining grouping_level from core Status: Active
View on Drupal.org #3164400HTML outputted as text when using table format with more than one grouping Status: Active
View on Drupal.org #3202900Views grouping field is double-escaped Status: Needs work
View on Drupal.org #2950737Preprocess hook implementation of views_view_grouping never triggering Status: Needs work
View on Drupal.org #3193844Leverage views grouping for entityreference selection widget Status: Needs work
View on Drupal.org #2824111Views strips HTML from content when grouping fields in columns in Table Format Status: Closed (cannot reproduce)
Group titles not displaying properly
Views grouping field is double-escaped
HTML outputted as text when using table format with more than one grouping
Views relationships with multi-valued entity reference fields invalidate Distinct query option
Twig Debug output shows in Group By title if grouping term has a label
Add support for tables with two headers in views table display
Exposed Filters
Mantra Views module includes a layout for exposed filters.
Use the layout with Views Exposed Form Layout (VEFL).
Or use BEF field classes to control flex layout.
IE: basis-full shrink-1