Skip to content

Extend Dropdown Component to Support Children #254

@MaliceCg

Description

@MaliceCg

Description

We already have a dropdown component, but it only supports a flat list of items. We need to extend it so that dropdowns can also display nested children (grouped or hierarchical items) as displayed here

Image

Requirements

Dropdown with groups/children
Parent items (e.g., "Landing tag", "Dashboard tag")
Child items under each parent (e.g., "Title dico (key dico)")

Code specification

use import { getUnmergedDictioanries } from "@intlayer/unmerged-dictionaries-entry" to retreive the dictioanries

Selection

  • Support selecting both parent and child items.
    Selected items should be visually highlighted with a checkmark.
    If we select a parent item, all the children should be automatically selected.
    Also we can select one children item and the parent should not be selected.
  • Search bar
    A text input at the top to filter both parent and child items.
  • Styling
    Keep the existing dropdown UI style (rounded, dark theme, consistent padding).
    Nested children should be slightly indented or grouped for clarity.

Acceptance Criteria

Dropdown supports hierarchical data with children.
Parent and child items render correctly with proper styling.
Checkmarks show which items are selected.
Search bar filters across both parent and child items.
Works consistently across modern browsers.

Metadata

Metadata

Assignees

Labels

CMSRelated to CMS / externalization of contentUIUi related issuesdesignDesign task relateddesign-systemRelated to the design system

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions