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

Change Sidenav.Link children prop type #1587

Closed GomezIvann closed 1 year ago

GomezIvann commented 1 year ago

We have found a valid use case for which the API of the DxcSidenav.Link does not fit properly. This use case was to add a status tag, inline with the text of the Sidenav link, to let the user know the current state of each documentation page. Since the children of the Link are typed as string, that is currently not allowed.

The feature here is to replace this type with React.ReactNode.