Skip to content

Commit 4db2471

Browse files
committed
fix(website): assign explicit gridRow to SequenceDiagram steps
Without an explicit gridRow, CSS Grid auto-placement can pack steps whose column spans don't overlap onto the same row, breaking the intended top-to-bottom reading order. Assigning gridRow: index + 1 guarantees each step occupies its own row in source order.
1 parent 42c8a95 commit 4db2471

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎website/src/components/FlowDiagram.tsrx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export function SequenceDiagram(props: {
248248
: 'sequence-left';
249249
<li
250250
class={['sequence-step', direction]}
251-
style={{ gridColumn: `${start} / ${end}` }}
251+
style={{ gridColumn: `${start} / ${end}`, gridRow: index + 1 }}
252252
aria-label={`${index + 1}. ${props.actors[step.from]} to ${props.actors[step.to]}: ${step.text}`}
253253
>
254254
<span>

0 commit comments

Comments
 (0)