[x] Build process is done without errors and all tests pass in the /lib directory.
[x] Self-reviewed the code before submitting.
[x] Meets accessibility standards.
[x] Added/updated documentation to /website as needed.
[x] Added/updated tests as needed.
Description
Summary of changes in the Sidenav component:
DxcSidenav.Link prop children has changed its type from string to React.ReactNode.
Specs updated:
Removed line heights to be able to properly align text inside a Sidenav link.
Removed unnecessary margin-right for SVGs inside the compound component Title.
Removed React.Children from the implementation and using instead React Context API and other resources. In the new React documentation site, they have established React.Children as a legacy API and recommend not to use it whenever possible (https://react.dev/reference/react/Children).
Checklist
/lib
directory./website
as needed.Description Summary of changes in the Sidenav component:
children
has changed its type fromstring
toReact.ReactNode
.Closes #1587