Repository navigation
Align InfiniteSelect Option rows and ContextMenu with the dropdown standard - #761
Open
JulienVannier66 wants to merge 6 commits into
Conversation
JulienVannier66
changed the base branch from
master
to
feature/select-dropdown-component-alignment
December 3, 2026 10:28
7 of 8 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
First step of aligning the Search dropdowns with the dropdown design system. It fixes the shared foundations in
OSS::InfiniteSelect,OSS::InfiniteSelect::OptionandOSS::ContextMenu, so that consumers no longer need their own CSS to useOptionrows, and adds what the action menus need.Optionrows insideInfiniteSelectno longer get the legacy item padding and hover: the<li>becomes a neutral wrapper and the keyboard focus is drawn on theOption. The 4 copied overrides (CountrySelector, CurrencyInput, Smart::Immersive::CurrencyInput, PhoneNumberInput) are removed. Rows that are not anOptionlook exactly as before.{{scroll-shadow followScroll=true}}shows a white gradient at the top and / or bottom only when there is more content to scroll. The other{{scroll-shadow}}usages are unchanged.Optiongets@tooltip(on the whole row, also when it is disabled) and@skin="danger".ContextMenugets@hideArrow, forwardstooltipandskinfrom its items, uses a white scroll gradient and supports the keyboard: the arrows move the focus, Enter runs the action (not on a disabled item or an item with a sub-menu), Escape closes.Note for consumers: a click on a
rowRendererrow now goes through the list selection, so its action no longer receives the click event.How it works
Option rows in InfiniteSelect. Each item is still wrapped in an
<li>. When the<li>directly holds a realOption(detected with:has(> .oss-infinite-select-option--single, > .oss-infinite-select-option--multiple), classes only the component sets), the<li>gets no padding and no background, and its keyboard focus is drawn on theOption(hover look, error colors for the danger skin). Rows that only copy theOptionclasses, likeDeleteOptionRowin Workflow, keep the legacy style. Consumers no longer need any CSS:Scroll gradient. The gradient pseudo-elements are positioned against
.upf-infinite-select__container, so the modifier has to sit on the element that scrolls. The container is now a non-scrolling flex column and the list (ul) always scrolls, as it already did when a consumer set itsmax-height. WithfollowScroll=true, the modifier tracks the scroll position (scroll, resize and DOM changes) and togglesscroll-shadow--top/scroll-shadow--bottom. Side effect:@onBottomReachednow also fires in lists without a search field, where the list used not to scroll.Option tooltip and danger skin.
ContextMenu. Items forward
disabled,tooltipandskinto theirOption. The panel now turns on the InfiniteSelect keyboard: Enter runs the item action unless the item is disabled or opens a sub-menu (sub-menus stay mouse-only), Escape and Tab close the menu.Related to: https://linear.app/upfluence/issue/VEL-8817/oss-components-infiniteselect-option-and-contextmenu-foundations
What are the observable changes?
In Storybook:
OSS::InfiniteSelect::Option→DangerandDisabled With Tooltip.OSS::ContextMenu→Basic Usage(disabled item with a tooltip, danger item, keyboard navigation) andIcon Trigger Without Arrow.OSS::CountrySelector,OSS::CurrencyInput,OSS::PhoneNumberInput: 36px rows with a single padding, a visible keyboard highlight, and the gradient at the top / bottom while scrolling.In the apps, once bumped:
Screencast.from.2026-12-03.11-23-45.webm
Screencast.from.2026-12-03.11-22-24.webm
Screencast.from.2026-12-03.11-20-34.webm
Good PR checklist