-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add floating ui to Sort section and filterByOpts in MultiAddSelect component #6328
Comments
Adding some notes to this issue, cc @devadula-nandan @elycheea @RichKummer Overflow vs PopoverCarbon is suggesting we use a popover for the filter with checkboxes
Design considerations:Arrows are not clearThe up and down arrows are not quite clear as to what is happening when the user selects one of the items in the menu. The designers on the standup call agreed that text written out as ' Title ascending' and `Title descending' would be more easily understood than the arrow icons and could be a better design Other design options:
|
Currently blocked by carbon-design-system/carbon#18153, when @janhassel's PR is merged we'll be able to support the checkbox within |
<Menu open>
<MenuItemGroup label="Font style">
<MenuItemSelectable label="Bold" selected />
<MenuItemSelectable label="Italic" />
</MenuItemGroup>
</Menu> Otherwise we keep
|
More detail on checkboxes in the menu/flyout — The original Add and Select pattern was designed in v1 (Carbon 10), where the We’re currently seeing the following options —
In our case, it actually may be This option would also require more design changes in both the kit and website docs, but @davidmenendez does not believe it would result in any breaking changes based on the current implementation.
|
the requirement for this issue is to migrate
overflowMenu
usage from@carbon/react
in ourMultiAddSelect
component from v11 to v12 via feature flagenableV12Overflowmenu
.current v11 usage screenshots
Why is this necessary?
To stay ahead as early adopters, identify potential conflicts with the upcoming major version, and ensure we receive the latest and ongoing support for both Floating UI and the new version.
Why is this blocking us?
The technical challenge lies in the shared
MenuItem
component between theMenu
and the v12OverflowMenu
. The behavior of this shared child differs when used with theOverflowMenu
parent, specifically preventing therenderIcon
prop from working unless the parent is set tomode="basic"
, a configuration only supported by theMenu
component.Additionally, the
label
prop andshortcut
prop forMenuItem
in v12'sOverflowMenu
is restricted to a string type, which limits our ability to render icons alongside the label. In contrast, the previous v11OverflowMenu
used its own child component,OverflowMenuItem
, which allowed more flexibility by supporting a React node for theitemText
prop. This enabled us to render custom components, such as icons, within the menu.this is a hard block unless the v12 overflowMenu provides a way to get
renderIcon
to work, and checkbox onmenuItem
to workThe text was updated successfully, but these errors were encountered: