Split chip Candidate for prod
A value chip that carries one qualifier: a location with its radius, a language with its proficiency. The value, the qualifier and the remove button share one pill, so the pair reads as one thing and leaves as one thing. It is variant 3 of Location and Language pairs 0.1, chosen over 0.8's two chips side by side.
Use it where every value in a filter takes exactly one qualifier from a short fixed list. Don't use it for a value with no qualifier (the plain chip), for a qualifier typed as free text, or for two qualifiers on one value.
Live example
Location and Language as they would sit in 0.8's panel. The + opens a search field, as in 0.8: try "united", "par" or "port". A place arrives at 25 mi, a country as a plain chip with no radius, a language at any proficiency. English is in twice, as a range. Point at a truncated value, or tab into its chip, for the full text.
Anatomy
One container, three parts, two dividers. Drawn at twice its size.
- 1Container. The canon's 24px chip outline: 1px
border-default, fully rounded,bg-ongray. Arole="group"named with the value and its qualifier. - 2Value. Plain text, 12px, 8px padding either side. Clicking it removes the pair, as clicking a plain value chip does; it takes no focus, because the × is the keyboard's way to remove. Truncates with an ellipsis when the pill meets the field's edge, and then carries a tooltip with the full text.
- 3Qualifier. The canon's chip Select, without its own outline: a 1px divider on its left, 8px padding either side, a 12px caret 4px after the text. Hover and open fill this segment only. Opens the standard listbox.
- 4Remove. A 24px-wide button with the 12px close icon,
text-secondary, behind a 1px divider that parts it from the caret. Removes the value and the qualifier.
States
Each specimen sits in a 288px field, the width a filter gets in 0.8's panel. Hover and focus are frozen here; the live example above has the real thing.
Behaviour
| When | What happens |
|---|---|
| The + is pressed | As in 0.8: the + gives way to a full-width search field under the values, with focus in it. Typing lists matches; arrows and Enter, or a click, pick one. The chip is added, the field closes and focus returns to the +. Escape, or leaving the field, closes it with nothing added. |
| A value is added | It arrives with the filter's default qualifier: 25 mi for a place, Any proficiency for a language. |
| A country is added | It is a single plain chip with its own ×, not a split chip: a country has no centre point, so there is no radius to choose and no empty segment to show. It sits in the same rows as the split chips, and its payload carries a null radius. |
| Location's list | Seventeen distances, in miles or kilometres: 10, 15, 20, 25, 30, 50, 75, 100, 150, 200, 250, 300, 400, 500, 750, 1,000, 1,500. No null option. |
| The qualifier is at its null option | Language only. "Any proficiency" sits below a divider at the foot of the list and matches the language whether or not a level is recorded. The segment stays, in text-secondary, and the payload carries a null proficiency. |
| Language's list | Production's five levels: Basic, Intermediate, Proficient, Fluent, Native. A level matches only contacts with that level recorded, so Any proficiency is the default: it keeps the contacts whose language has no level. |
| The same language is added again | Allowed. Two chips for one language make a range: English, Native and English, Fluent under Has any of. Repeats are not blocked under Has all of or Has none of, where they make little sense; that edge is accepted, not designed for. Location does not repeat a place. |
| Two chips come to match exactly | The same value at the same qualifier cannot appear twice. When a qualifier is changed to its twin's, the changed chip folds into the twin and focus moves to the +. |
| The qualifier changes | The value stays, the results refresh. One click to open, one to choose. |
| The value or the × is clicked | The value and its qualifier are removed together, as a click anywhere on a plain value chip removes it. Only the qualifier segment does something else. Focus moves to the next chip's ×, or to the + when none is left. |
| The value or the × is hovered, or the × focused | The whole pill takes text-error: outline, divider, text, the picker's caret and the ×. This is the only announcement that both parts go. |
| The pill is wider than the field | The value truncates; the qualifier and the × keep their width. The full value is in the group's name and in the tooltip. |
| A truncated value is pointed at, or focus enters its chip | The canon tooltip shows the full value above the chip after 0.4s, left-aligned to it. A value that fits has no tooltip. Touch has no route to the full text of a truncated value; that gap is accepted for a desktop panel. |
| Several values | One chip a line in Location and Language, 8px apart, as 0.8 stacks them today. |
| The radius unit switches | Every radius is relabelled and keeps its number: 25 mi becomes 25 km. The row shows once a place with a radius is in. |
Keyboard and accessibility
| Concern | Rule |
|---|---|
| Name | The container is role="group" with aria-label "London, United Kingdom, within 25 mi". The label is rebuilt when the qualifier changes. |
| Tooltip | Hidden from assistive technology, because the group's name already carries the full value. It needs no tab stop: focus on the qualifier or the × shows it. It appears on hover and focus only, so SC 1.4.13 applies: it stays while the pointer is on the value and goes when focus leaves. |
| Tab stops | Two a chip, in reading order: the qualifier, then the ×. The value takes no focus: its click is a pointer shortcut for the ×, which does the same from the keyboard. |
| Qualifier | The canon Select: Enter, Space or the arrow keys open the listbox, arrows move, Enter chooses, Escape closes. Its accessible name is "Radius for London, United Kingdom". |
| Remove | A <button> named "Remove London, United Kingdom, within 25 mi", so the name says both parts go. |
| Target size | The × is 24 by 24px. The qualifier is 22px tall inside the outline and passes SC 2.5.8 by spacing: its nearest targets are the × beside it and the chip 8px below. |
| Contrast | Value and qualifier text are text-default; the caret and × are text-secondary, 5.2:1. The outline is border-default, below 3:1, which SC 1.4.11 allows because the text and icons identify the control. The remove preview does not rely on colour alone: the button's name carries it. |
Open questions
| Question | Where it stands |
|---|---|
| Which places are plain chips | Countries only, for now. US states may get the same treatment, with no radius; that needs a check with engineering first. Tracked on RECX-3013, the Location – country filter. |
| Any proficiency beside a level | English, Any proficiency already includes English, Fluent, so the second chip adds nothing. Not prevented here. |
| Does the pairing read? | Not tested with recruiters. The usability test on Location's paired chips should run on this chip against 0.8's two chips. |
| Name in the design system | Split chip here. Whether it is a Chip variant or its own component is for the design system's owners. |