Skip to content

Commit

Permalink
Correct text for Control + Home/End in treegrid pattern
Browse files Browse the repository at this point in the history
The text in the treegrid pattern differed to the text in the treegrid
example. The content of the treegrid pattern was nonsensical as a column
only contains one cell so moving focus to the first cell in a column is
meaningless.

The behaviour and text of the example are consistent and make logical
sense.

Inaccurate text:
If focus is on a cell, moves focus to the first cell in the column.
If focus is on a cell, moves focus to the last cell in the column.

Corrected text:
If focus is on a cell, moves focus to the cell in the first row in the same column as the cell that had focus.
If focus is on a cell, moves focus to the cell in the last row in the same column as the cell that had focus.
  • Loading branch information
andrewnicols committed Aug 22, 2023
1 parent 164188c commit 1579506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/patterns/treegrid/treegrid-pattern.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h2>Keyboard Interaction</h2>
If focus is in the first row, focus does not move.
</li>
<li>
If focus is on a cell, moves focus to the first cell in the column.
If focus is on a cell, moves focus to the cell in the first row in the same column as the cell that had focus.
If focus is in the first row, focus does not move.
</li>
</ul>
Expand All @@ -178,7 +178,7 @@ <h2>Keyboard Interaction</h2>
If focus is in the last row, focus does not move.
</li>
<li>
If focus is on a cell, moves focus to the last cell in the column.
If focus is on a cell, moves focus to the cell in the first row in the same column as the cell that had focus.
If focus is in the last row, focus does not move.
</li>
</ul>
Expand Down

0 comments on commit 1579506

Please sign in to comment.