Problem/Motivation

On a Canvas search page with a filter rail, the facet checkbox lists sit 2rem in from the rail heading above them, from the browser's default list padding. The header search bar also takes the browser's autofill tint when a saved entry fills it.

Steps to reproduce

  1. Install Varbase Starter with Varbase Search Base.
  2. Open /search?keywords=varbase.
  3. The Tags and Content Type checkboxes are indented from their headings.

Proposed resolution

  • Add Bootstrap's list-unstyled ps-0 to facet lists in a facets_item_list preprocess, so they line up with the heading.
  • Keep the header search bar's background and text colour when the browser autofills it.
  • Render the Date Published radios in the search rail as a plain option list, with the same label size, row step and alignment as the facet lists, and no card box.

Screenshots

Before

Facet lists indented, Date Published in a card box

After

Facet lists and Date Published radios aligned with the rail headings

Remaining tasks

  • ✅ File an issue
  • ❌ Addition/Change/Update/Fix
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support
  • ➖ User Guide Documentation support
  • ❌ UX/UI designer responsibilities
  • ❌ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes
  • ❌ Release

User interface changes

  • Facet lists and the Date Published radios align with their rail headings; the header search keeps its look when autofilled.

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Facet lists line up with the search filter rail, and the header search keeps its look when the browser autofills it.

AI-Generated: Yes. Drafted with an AI assistant and reviewed before posting.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

rajab natshah’s picture

  • rajab natshah committed f486d877 on 5.0.x
    fix: #3631158 Align search facet lists with the rail heading and keep...
rajab natshah’s picture

Status: Needs review » Fixed
Issue tags: +vartheme_bs5-5.0.7

✅ Released vartheme_bs5-5.0.7

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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