feat(ui5-list): add InactiveSelectable list item type - #13962
feat(ui5-list): add InactiveSelectable list item type#13962dobrinyonkov wants to merge 5 commits into
Conversation
Introduces a new `ListItemType.InactiveSelectable` enum value. Items of this type behave like `Inactive` (no active press feedback, no `item-click` event) but still allow selection (checkbox/radio) to be toggled when the list has a selection mode set.
👋 Heads-up: dev close is in effectThanks for the contribution! This repository is currently in dev close ahead of release This PR appears to introduce public-API changes (detected by diffing the Custom Elements Manifest against the latest published version on npm):
Could you please hold off on merging into If this change must ship in the current release, please request a review from one or two members of @UI5/ui5-team-webc so the team can sign off explicitly.
Posted automatically by the Dev Close Notice workflow. |
|
🚀 Deployed on https://pr-13962--ui5-webcomponents-preview.netlify.app |
Cover the Enter keydown path through fireItemPress, which is a distinct code path from Space (keyup) and click. Adds: - Multiple + Enter toggles selection - Single + Enter selects item - item-click is NOT fired on Enter
related to: #13265, CS20260012870747
Summary
InactiveSelectableas a new value to theListItemTypeenumitem-click(same asInactive)Inactive, selection (checkbox/radio) is still toggled when the list has aselectionModesetisInactiveSelectablegetter onListItemfor internal useUsage
Behaviour
item-clickfiresActiveInactiveInactiveSelectableNavigationDetailTest plan
type="InactiveSelectable"withselection-mode="Multiple"— click/Space toggles checkbox, noitem-clicktype="InactiveSelectable"withselection-mode="Single"— click selects item, noitem-clicktype="InactiveSelectable"withselection-mode="None"— click does nothingtype="InactiveSelectable"withselection-mode="Delete"— click does nothingtype="Inactive"behavior unchangedtype="Active"behavior unchanged