Skip to content

Commit

Permalink
Treegrid Pattern keyboard section: Correct text for Control + Home/En…
Browse files Browse the repository at this point in the history
…d (pull #2779)

For Control+Home and Control+End, The text in the treegrid pattern differed from the text in the treegrid
example. The text in the treegrid pattern didn't make sense because a column only contains one cell so moving focus to the first cell in a column is meaningless. The behaviour and text on the example page are consistent and make logical
sense. This commit makes the pattern and example pages consistent with each other.

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 authored Sep 19, 2023
1 parent eed124a commit 3b17ee7
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 last 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 3b17ee7

Please sign in to comment.