Problem/Motivation

The autocomplete facet label remains visually hidden as its value is hard coded.

Steps to reproduce

Add a facet of type autocomplete. Check the contrib facet setting "Show title of facet". Check the rendered field, the label is visually-hidden.

Proposed resolution

Use the option "Show title of facet" disponible in the Facet settings to determine the visibility of the label.

CommentFileSizeAuthor
#2 invisible_facets_label-3410309-2.patch648 byteslus
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

Lus created an issue. See original summary.

lus’s picture

StatusFileSize
new648 bytes

Proposed patch.

lus’s picture

Issue summary: View changes
martygraphie’s picture

Title: Invisible facets label. » Allow to hide or show autcomplete facet label
martygraphie’s picture

Title: Allow to hide or show autcomplete facet label » Allow to hide or show autocomplete facet label
prudloff’s picture

The patch works correctly but it is a bit weird to have "autocomplete" in the label when it is displayed.

brentg made their first commit to this issue’s fork.

  • 7c8ea8ed committed on 2.0.x
    Issue #3410309: Allow to hide or show autocomplete facet label
    
brentg’s picture

Adapted the patch with the advise of prufdloff and added the fix

brentg’s picture

Status: Needs review » Fixed
Issue tags: +DevDaysBurgas2024

Status: Fixed » Closed (fixed)

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