This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-c8c11ddb-73f9-4adc-80b1-63732906e4de XWIKI-25674 Open

Truncated search facet values cannot be read by keyboard-only and touch users

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-aa57f481-34df-47c7-af1f-3f91c7caef1b Charpentier Lucas created this issue on 05/Nov/26 17:25
 
Summary: Truncated search facet values cannot be read by keyboard-only and touch users
Issue Type: cid:jira-generated-image-avatar-c8c11ddb-73f9-4adc-80b1-63732906e4de Improvement
Affects Versions: 17.10.14
Assignee: Unassigned
Components: Search - Solr
Created: 05/Nov/26 17:25
Priority: cid:jira-generated-image-static-major-9ff44230-17df-4eff-98f8-82b3bbcbd17a Major
Reporter: Charpentier Lucas
Description:

Long facet values in the Solr search facets are cut with an ellipsis, since .search-facet-body .itemName uses text-overflow: ellipsis and white-space: nowrap.

XWIKI-18330 adds a title attribute on the facet value links, which shows the full value as a tooltip on mouse hover. A title is not displayed on keyboard focus nor on touch devices though, so keyboard-only and mobile users still cannot read the full value of a truncated facet. Screen reader users are not affected, since the full text is in the link.

Steps to reproduce

  1. Create a page whose title or location is long enough to be truncated in a facet, e.g. in the Location facet.
  2. Search for it, so that the facet value is displayed truncated in the facets panel.
  3. Navigate to the facet value with the keyboard, or open the search page on a touch device.

Expected

The full facet value can be read.

Actual

Only the truncated value is visible, the tooltip is never displayed.

Notes

Discussed in https://github.com/xwiki/xwiki-platform/pull/4938#discussion_r4455724805. Wrapping the text only on :hover / :focus was suggested, but changing the height of the facet values while navigating would make the panel content move around, so another approach may be preferable.