Skip to content

CHI-4045: Align checkbox filter rows and cut long labels at two lines - #4902

Open
gpaoloni wants to merge 1 commit into
CHI-4045-collapsible-categories-filterfrom
CHI-4045-checkbox-label-layout
Open

gpaoloni wants to merge 1 commit into
CHI-4045-collapsible-categories-filterfrom
CHI-4045-checkbox-label-layout

Conversation

@gpaoloni

Copy link
Copy Markdown
Collaborator

Description

Stacked on #4900. Two layout fixes for the shared checkbox grid (CheckboxMultiSelectOptions):

  • Rows line up. When one label in a row wrapped onto several lines, its checkbox sat in the middle of it while the other two stayed at the top. Grid items are now centred vertically (alignItems="center"), so all checkboxes in a row sit at the same level, in the middle of the row.
  • Long labels are cut at two lines. Labels longer than two lines end in an ellipsis (CSS line clamp), and the full text shows on mouseover via a native title tooltip. The full text stays in the DOM, so screen readers still read the whole label.

The grid is shared, so KHP's checkbox filters get the same alignment and cut too. Their labels are short, so they should look unchanged.

Checklist

  • Corresponding issue has been opened
  • New tests added
  • Feature flags added
  • Strings are localized
  • Tested for chat contacts
  • Tested for call contacts

Other Related Issues

Verification steps

  1. On a USCH environment, expand the Categories filter. In any row containing a long category name, all three checkboxes are at the same height, centred in the row.
  2. A category name longer than two lines is cut with "…". Hovering over it shows the full name.
  3. On a KHP environment, the Fee Structure and "How is this service offered?" filters look as before.
  • Automated checks: the resource component tests (including a new test for the tooltip), tsc and lint pass. jsdom can't check layout, so the centring and the two-line cut need checking in a browser; that hasn't been done yet.

AFTER YOU MERGE

  1. Cut a release tag using the Github workflow. Wait for it to complete and notify in the #aselo-deploys Slack channel.
  2. Comment on the ticket with the release tag version AND any additional instructions required to configure an environment to test the changes.
  3. Only then move the ticket into the QA column in JIRA

You are responsible for ensuring the above steps are completed. If you move a ticket into QA without advising what version to test, the QA team will assume the latest tag has the changes. If it does not, the following confusion is on you! :-P

🤖 Generated with Claude Code

@gpaoloni
gpaoloni added this pull request to stack #4899 November 25, 2026 20:21
@gpaoloni
gpaoloni force-pushed the CHI-4045-checkbox-label-layout branch 2 times, most recently from 72f4238 to df0e0d2 Compare November 26, 2026 16:38
Centre the checkboxes of a row vertically, so they line up when one of
the labels wraps. Labels longer than two lines are cut with an ellipsis,
and the full text shows on mouseover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

2 participants