Extend <Stepper> with an indicator-only "rail" layout variant.#13103
Extend <Stepper> with an indicator-only "rail" layout variant.#13103JakePT wants to merge 10 commits into
Conversation
🎭 Playwright reports for 32d9ea4: 📚 Storybook for 32d9ea4: 📦 Build files for 32d9ea4:
|
| } | ||
|
|
||
| .googlesitekit-stepper--rail { | ||
| --googlesitekit-stepper-size: 18px; |
There was a problem hiding this comment.
In Figma these are 16.5px, but the active step renders poorly at this size even on 2x displays because the full layout would require padding with quarter-pixels.
18px worked the best across resolutions, matched the layout size in the design, doesn't require special handling for 2x displays, and kept the inner and inactive circle sizes consistent as per the design.
There was a problem hiding this comment.
Thanks @JakePT. I think this is correct anyway, as the full size of the vector appears to be 18px in Figma designs too.
There was a problem hiding this comment.
@nfmohit If you zoom in you'll see some white space though. The green circle itself is 16.5px.
There was a problem hiding this comment.
You're right. I think we can disregard that. LGTM 👍
|
Failing tests appear to be unrelated. |
|
Size Change: 0 B Total Size: 3.71 MB ℹ️ View Unchanged
|
…oogle/site-kit-wp into enhancement/12949-stepper-rail-variant.
|
@ankitrox I've corrected the breakpoint and updated the VRT references. Passing back to you before checks finish because the changes are small, but pass back to me if something unexpectedly fails. Thanks! |
| } | ||
|
|
||
| .googlesitekit-stepper--rail { | ||
| --googlesitekit-stepper-size: 18px; |
There was a problem hiding this comment.
Thanks @JakePT. I think this is correct anyway, as the full size of the vector appears to be 18px in Figma designs too.
| align-items: stretch; | ||
| column-gap: 14px; | ||
| display: grid; | ||
| gap: 12px 14px; |
There was a problem hiding this comment.
Sorry, I'm probably missing something here, but could you clarify why the 14px column gap is needed here?
There was a problem hiding this comment.
@nfmohit It's supposed to be the gap between the dot and the text, I think it's left there from an early experiment with subgrid, but it meant that the column gap was incorrect so I've fixed that. I also fixed a small issue I caught where the line was underneath the active dot.
Summary
Addresses issue:
<Stepper>with an indicator-only "rail" layout variant #12949Relevant technical choices
PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist