dxc-technology / halstack-react

Library of components for building SPAs with React and Halstack Design System
https://developer.dxc.com/halstack/
Apache License 2.0
15 stars 14 forks source link

[DxcContextualMenu] Select an item by default #1962

Closed jsuarezgonz closed 6 months ago

jsuarezgonz commented 7 months ago

Describe the bug We need to define a way of selecting one of the items of the DxcContextualMenu by default. For example, if the initial state of a screen is showing the content of one of the items of the contextual menu, we have no way to show the item as selected.

Expected behaviour We should have a way to select by default one of the items of the DxcContextualMenu and show it in the same way as if it had been clicked.

Screenshots image

github-actions[bot] commented 7 months ago

Thank you for opening an issue! 🚀

Our team will review it as soon as possible. In the meantime, please make sure that you've provided all the necessary details to help us understand and address the issue effectively.

Feel free to contribute and participate in discussions!

GomezIvann commented 7 months ago

Hi @jsuarezgonz!

Agree on this one. We need to include a new prop or figure out how to allow our users to mark an option as selected by default.