Skip to content

fix: decouple facet search labels from visual display - #699

Merged
k-gerner merged 3 commits into
mainfrom
decouple-facet-option-label-5737
Aug 18, 2026
Merged

fix: decouple facet search labels from visual display#699
k-gerner merged 3 commits into
mainfrom
decouple-facet-option-label-5737

Conversation

@k-gerner

Copy link
Copy Markdown
Contributor

Always associate searchable facet inputs with a facet-specific label,
while allowing that label to be visually shown or hidden.

showOptionsSearchInputLabel now controls only visual presentation. When
false, the label remains available to assistive technology through the
sr-only class. When true, the label is displayed normally.

Consumers can control visibility for an individual StandardFacet,
NumericalFacet, or StaticFilters component:

<StandardFacet showOptionsSearchInputLabel />

Facets now also accepts showOptionsSearchInputLabel to control all
automatically rendered facets. Child facets can explicitly override the
parent setting.

Add visuallyHiddenLabel support to SearchInput and render hidden labels
after the input to preserve existing sibling-spacing behavior.

Addresses issue #692

J=WAT-5737

@k-gerner
k-gerner requested a review from a team as a code owner August 18, 2026 15:25
@coveralls

coveralls commented Aug 18, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 84.687% (-0.04%) from 84.727% — decouple-facet-option-label-5737 into main

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Current unit coverage is 89.38856015779093%
Current visual coverage is 69.02201740911418%
Current combined coverage is 91.83120402632598%

@k-gerner
k-gerner merged commit 387f119 into main Aug 18, 2026
22 checks passed
@k-gerner
k-gerner deleted the decouple-facet-option-label-5737 branch August 18, 2026 17:45
k-gerner added a commit that referenced this pull request Aug 18, 2026
* chore: move the signpost next to GDA header and remove default label (v3.1.1) (#682)

* chore: move the signpost next to answer text and remove default label (v3.1.1)

* remove unnecessary test

* Update snapshots

* prettier button

* Update snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* release: v3.1.1

* feat: gda feedback buttons (#685)

* add feedback buttons

* rename var

* Update snapshots

* Update snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* release: v3.2.0

* fix: invalid empty string vertical key in analytic events (v3.2.1) (#688)

J=WAT-5714
TEST=manual

verified GDA feedback events on test-site was valid and made it to report builder in storm

* release: v3.2.1

* fix: js-yaml vulnerabilities (v3.2.2) (#694)

* fix: js-yaml vulnerabilities (v3.2.2)

* Update snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* release: v3.2.2

* revert version bump to republish (#696)

* release: v3.2.2

* fix: decouple facet search labels from visual display (#699)

* fix

* Automated update to repo's documentation from github action

* Update snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* release: v3.3.0

---------

Co-authored-by: anguyen-yext2 <143001514+anguyen-yext2@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anh Thu Nguyen <anguyen@yext.com>
Co-authored-by: Kyle Gerner <49618240+k-gerner@users.noreply.github.com>
Co-authored-by: Kyle Gerner <kgerner@yext.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants