Property "expanded" to control default behaviour of IcNavigationGroup
Summary
In the IcSideNavigation (Side Navigation) component, there is no way to force an expandable Navigation Group to default as closed.
💬 Description
A pattern exists already for specifying the default state of a collapsible component, which is the use of an expanded property. See the IcAccordion and IcSideNavigation components for examples this has already been implemented.
💰 Use value
Side Navigation groups often include expandable lists (for example, categories or sub-navigation menus) with options that are not immediately relevant to users and so should have the option to be initially hidden.
📝 Acceptance Criteria
Given a side navigation menu with a navigation group that has the expandable property set to true
When the expanded property on the navigation group is set to false
Then the navigation group should default to a collapsed state