Skip to content

Resolve "Add RccSegmentComponent"

James Jenkinson requested to merge 406-add-rccsegmentcomponent into main

Example

Example usage of component can be found here: 406-example-usage

A11y / roles

The implementation of this component from ionic is using the tablist / tab roles. However in the context in which we're using our component, this isn't really valid, a tab role needs an associated tab panel, whereas we only have one panel, and the content within it is being affected by the component.

As such I think the radiogroup / radio role makes more sense here. The keyboard behavior for that is a bit different however to the tablist controls: in that the new value should be automatically selected when navigating with the arrow keys.

In theory though in the future if we needed this same component to control a set of tab panels, that could be made configurable.

Closes #406

Merge request reports

Loading