Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
293 stars 76 forks source link

[calcite-menu] add an option to show active indicator at the start instead of end #8704

Open rpanichakit9541 opened 9 months ago

rpanichakit9541 commented 9 months ago

Check existing issues

Description

Currently when using calcite-menu with layout="vertical", the active indicator of the calcite-menu-item always show up at the end (right side) of the item. In contrast, if I use calcite-list with selection-appearance="border" it shows the selected indicator at the front.

Can we expose a prop so the user can choose to switch the active indicator to the front instead?

Acceptance Criteria

Add a way to be able to configure calcite-menu to show active indicator at the front of the item

Relevant Info

No response

Which Component

calcite-menu calcite-menu-item

Example Use Case

Here's a repro example to show the contrast between calcite-menu and calcite-list https://codepen.io/rpanichakit/pen/yLwqGzw?editors=100

Here's a link to the issue from a designer requesting the active indicator position change https://devtopia.esri.com/WebGIS/arcgis-portal-app/issues/48951

Priority impact

p4 - not time sensitive

Calcite package

Esri team

ArcGIS Online

geospatialem commented 3 months ago

Design expertise sought for implementation alongside the indicator at the end of the component.

SkyeSeitz commented 1 month ago

Design expertise sought for implementation alongside the indicator at the end of the component.

Definitely agree with this direction. Thanks @ashetland for adding the labels to move this forward.