[Stepper] `alternativeLabel` makes text not reach the edges of the container
See original GitHub issueWhen ‘alternativeLabel’ is applied to a stepper the connector is made a child of the the step succeeding it and is absolutely positioned. By each step evenly spacing in the bounds and being centered it no longer takes up the whole space it is given (or at least from a viewing perspective).
What it looks like now:
What it should look like:
I was able to accomplish this by not making the connector a child of the succeeding step (using the same layout as the non-alternativeLabel variant, removing flex: 1
on each step, removing all the alternativeLabel
styles on the connector, and adding margin-top: theme.spacing(1.25)
to the connector.
I could potentially pick this issue up, but I’m sure there was reasons for the absolute
positioning method so wanted to open a discussion on it first to see what else may need to be considered.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top GitHub Comments
Hi, would it be possible to update the codesandbox examples? They currently show this error:
Thanks!
This would be super helpful for us too!