Commit 1149fb5
authored
[Step Indicator] Add options to display large header first (#306)
## Changes
- Adds `large_header` option
- Adds `header_first` option
## Context
In certain applications like MN, the header is shown before the step
indicator segments and uses a larger text that displays the heading text
prominently (compared to the "Step X of Y" text.)
This PR adds some options to support this so we can switch to using the
Strata step indicator partial instead of a custom one.
### Caveats
I'm not entirely sure if there's an accessibility consideration here
with placing the heading above the step indicator. The USWDS
documentation states that a heading should be placed below the step
indicator, but it's worded to focus on **having a heading** and not so
much on having a heading **below** the indicator.
## Testing
Updated lookbook.
<img width="1716" height="350" alt="CleanShot 2026-03-30 at 17 19 56@2x"
src="https://github.com/user-attachments/assets/96f39c97-c4d4-4a1f-9ee8-7a52960553ad"
/>1 parent 212e137 commit 1149fb5
2 files changed
Lines changed: 34 additions & 11 deletions
File tree
- app
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
61 | 70 | | |
62 | 71 | | |
63 | 72 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
29 | 46 | | |
30 | 47 | | |
31 | 48 | | |
32 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
33 | 54 | | |
34 | 55 | | |
35 | 56 | | |
| |||
52 | 73 | | |
53 | 74 | | |
54 | 75 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
66 | 80 | | |
0 commit comments