[Wizard] HTML structure concerns #893
Replies: 3 comments
-
At least we need to specify in the documentation that every step needs to be represented as a heading either in the wizard component or a header added between the stepper and the content. If we decide to change the label of each step as a heading we should consider the property |
Beta Was this translation helpful? Give feedback.
-
I think this question is very similar to the discussion we have about client-side navigation with Link and Tabs (#757 and #878), there may be cases where the step triggers an action when clicking or just reload part of the page. |
Beta Was this translation helpful? Give feedback.
-
Braid uses exactly this approach in Stepper component. But other design systems don't use
Atlassian has the same implementation, but inside the external
Other design systems such as Ant and Carbon supports a node element in the label prop. A very similar solution provides Atlassian, which uses prop
Carbon and Braid use a |
Beta Was this translation helpful? Give feedback.
-
The current component structure is made up of divs and buttons, which doesn't fit the accessibility concerns expected from the component. Some proposals to consider about the external containers:
<div>
a<nav>
with an inner<ol>
, as the steps are ordered.<div>
arole="group"
, which is the last implementation. Keep the inner list of steps as a<div>
.Other topics to discuss:
<heading>
tag for each step label?<link>
instead of a<button>
?Beta Was this translation helpful? Give feedback.
All reactions