Skip to content

Commit bb37c12

Browse files
accesswatchclaudeDebeeArmstrongabinyads-devValeriia458
authored
docs(challenge-04): keyboard and screen reader steps for creating a branch (#259)
The branch field both filters existing branches and names a new one, so a screen reader user hears that no branches match and then has to Tab past the Tags tab to reach Create branch. The Challenge 4 template (both copies), the challenge hub, the reference solution and the Day 1 agenda now say so. Closes #246. Reported by @DebeeArmstrong; the wording draws on pull requests #256 and #257 by @abinyads-dev and #258 by @Valeriia458. Claude-Session: https://claude.ai/code/session_01PmRBrUTuhzYnQBFxUCN6Vr Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: DebeeArmstrong <DebeeArmstrong@users.noreply.github.com> Co-authored-by: abinyads-dev <abinyads-dev@users.noreply.github.com> Co-authored-by: Valeriia458 <Valeriia458@users.noreply.github.com>
1 parent 19786d8 commit bb37c12

11 files changed

Lines changed: 843 additions & 2026 deletions

File tree

‎.github/ISSUE_TEMPLATE/challenge-04-branch-out.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ body:
1515
### Instructions
1616
1717
1. Make sure you are on the **Code** tab of the learning-room repository.
18-
2. Find the branch dropdown (it shows "main" by default).
19-
3. Type `learn/YOUR-USERNAME` (replace YOUR-USERNAME with your actual GitHub username).
20-
4. Select **Create branch: learn/YOUR-USERNAME from main**.
18+
2. Find the branch button near the top of the file list. It shows the current branch, so a screen reader reads it as "main branch". Press `Enter` or `Space` to open it.
19+
3. A text field opens. It is labelled for finding branches, and it is also where you type the name of a **new** branch. Type `learn/YOUR-USERNAME` (replace YOUR-USERNAME with your actual GitHub username).
20+
4. GitHub may announce that no branches match. That is expected: the branch does not exist yet.
21+
5. Press `Tab` until you reach **Create branch: learn/YOUR-USERNAME from main**. It is usually two presses, past the Tags tab. Press `Enter` or `Space`.
22+
6. GitHub creates the branch and switches you to it. The branch button now reads `learn/YOUR-USERNAME`.
2123
2224
### Branch naming convention
2325
@@ -51,7 +53,8 @@ body:
5153
5254
| Symptom | Try this |
5355
|---|---|
54-
| I cannot find the branch dropdown | Look for a button that says "main" with a dropdown arrow, near the top-left of the file list. Screen reader users: it is a button labeled "Switch branches/tags". |
56+
| I cannot find the branch dropdown | Look for a button that says "main" with a dropdown arrow, near the top-left of the file list. Screen readers read it as "main branch". |
57+
| I typed the name and it says no branches were found | That is expected for a new branch. Press `Tab` until you reach **Create branch**, then press `Enter`. |
5558
| It says the branch already exists | If you already created it, you are done. Switch to it and confirm your username is in the name. |
5659
| I typed the name wrong | Create a new branch with the correct name. The old one will not cause problems. |
5760
| I finished but want to check my work | [View the reference solution](https://github.com/Community-Access/git-going-with-github/blob/main/docs/solutions/solution-04-branch-out.md) |

‎admin/DAY1_AGENDA.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ Challenge 4 asks you to create a personal branch named `learn/YOUR-USERNAME`.
253253
**Step by step:**
254254

255255
1. Make sure you are on the Code tab of your repository
256-
2. Find the branch dropdown (it shows "main" by default) -- use `B` to navigate buttons
257-
3. Type `learn/YOUR-USERNAME` (replace with your actual GitHub username)
258-
4. Select "Create branch: learn/YOUR-USERNAME from main"
256+
2. Find the branch dropdown (it shows "main" by default; screen readers read "main branch") -- use `B` to navigate buttons, then press `Enter`
257+
3. In the text field that opens, type `learn/YOUR-USERNAME` (replace with your actual GitHub username). The field also filters existing branches, so "no branches found" is expected
258+
4. Press `Tab` until you reach "Create branch: learn/YOUR-USERNAME from main" (usually two presses, past the Tags tab), then press `Enter` or `Space`
259259

260260
> **Why branches matter:** A branch is your private workspace. You can make changes without affecting anyone else. When you are ready, you open a pull request to propose merging your changes into `main`. This is how every contribution works in open source.
261261

‎docs/CHALLENGES.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ A branch is a safe workspace. It lets you try a change without rewriting the mai
8080

8181
**What to do:**
8282

83-
- Find the branch selector on the Code tab
84-
- Create a branch named `learn/YOUR-USERNAME` from `main`
83+
- Find the branch selector on the Code tab. Screen readers read it as "main branch".
84+
- Open it. The text field that opens is for finding branches and also for naming a new one. Type `learn/YOUR-USERNAME`; "no branches found" is expected.
85+
- Press `Tab` until you reach **Create branch: learn/YOUR-USERNAME from main** (usually two presses, past the Tags tab), then press `Enter` or `Space`
8586
- Confirm the branch selector now names your branch
8687

8788
**Evidence to post:** Write the branch name you created and how you confirmed you were on it.

‎docs/solutions/solution-04-branch-out.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ This shows how to create a branch from each tool. You only needed to use one.
55
## On github.com
66

77
1. Go to the repository's Code tab
8-
2. Click the branch dropdown (it says "main")
9-
3. Type a new branch name like `fix/welcome-todo`
10-
4. Click "Create branch: fix/welcome-todo from main"
8+
2. Open the branch dropdown (it says "main"; a screen reader reads it as "main branch")
9+
3. Type a new branch name like `fix/welcome-todo` in the text field that opens. The same field filters existing branches and names a new one, so "no branches found" is expected
10+
4. Select "Create branch: fix/welcome-todo from main". With a keyboard, press `Tab` until you reach it (usually two presses, past the Tags tab), then press `Enter` or `Space`
1111

12-
The branch now exists on GitHub. You can switch to it using the same dropdown.
12+
The branch now exists on GitHub and is active. You can switch to it using the same dropdown.
1313

1414
## In VS Code (with Git)
1515

‎html/admin/DAY1_AGENDA.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,9 @@ <h3 id="part-a---challenge-4-branch-out-20-min">Part A - Challenge 4: Branch Out
574574
<p><strong>Step by step:</strong></p>
575575
<ol>
576576
<li>Make sure you are on the Code tab of your repository</li>
577-
<li>Find the branch dropdown (it shows &quot;main&quot; by default) -- use <code>B</code> to navigate buttons</li>
578-
<li>Type <code>learn/YOUR-USERNAME</code> (replace with your actual GitHub username)</li>
579-
<li>Select &quot;Create branch: learn/YOUR-USERNAME from main&quot;</li>
577+
<li>Find the branch dropdown (it shows &quot;main&quot; by default; screen readers read &quot;main branch&quot;) -- use <code>B</code> to navigate buttons, then press <code>Enter</code></li>
578+
<li>In the text field that opens, type <code>learn/YOUR-USERNAME</code> (replace with your actual GitHub username). The field also filters existing branches, so &quot;no branches found&quot; is expected</li>
579+
<li>Press <code>Tab</code> until you reach &quot;Create branch: learn/YOUR-USERNAME from main&quot; (usually two presses, past the Tags tab), then press <code>Enter</code> or <code>Space</code></li>
580580
</ol>
581581
<blockquote>
582582
<p><strong>Why branches matter:</strong> A branch is your private workspace. You can make changes without affecting anyone else. When you are ready, you open a pull request to propose merging your changes into <code>main</code>. This is how every contribution works in open source.</p>

‎html/docs/CHALLENGES.html‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,9 @@ <h2 id="day-1-you-belong-here-challenges-1-9">Day 1: You Belong Here (Challenges
284284
<p>A branch is a safe workspace. It lets you try a change without rewriting the main version of the project. In this challenge, you create your own branch and confirm that you know where your work will happen.</p>
285285
<p><strong>What to do:</strong></p>
286286
<ul>
287-
<li>Find the branch selector on the Code tab</li>
288-
<li>Create a branch named <code>learn/YOUR-USERNAME</code> from <code>main</code></li>
287+
<li>Find the branch selector on the Code tab. Screen readers read it as &quot;main branch&quot;.</li>
288+
<li>Open it. The text field that opens is for finding branches and also for naming a new one. Type <code>learn/YOUR-USERNAME</code>; &quot;no branches found&quot; is expected.</li>
289+
<li>Press <code>Tab</code> until you reach <strong>Create branch: learn/YOUR-USERNAME from main</strong> (usually two presses, past the Tags tab), then press <code>Enter</code> or <code>Space</code></li>
289290
<li>Confirm the branch selector now names your branch</li>
290291
</ul>
291292
<p><strong>Evidence to post:</strong> Write the branch name you created and how you confirmed you were on it.</p>

‎html/docs/solutions/solution-04-branch-out.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,11 @@ <h2 class="onpage-title">On This Page</h2>
220220
<h2 id="on-githubcom">On github.com</h2>
221221
<ol>
222222
<li>Go to the repository&#39;s Code tab</li>
223-
<li>Click the branch dropdown (it says &quot;main&quot;)</li>
224-
<li>Type a new branch name like <code>fix/welcome-todo</code></li>
225-
<li>Click &quot;Create branch: fix/welcome-todo from main&quot;</li>
223+
<li>Open the branch dropdown (it says &quot;main&quot;; a screen reader reads it as &quot;main branch&quot;)</li>
224+
<li>Type a new branch name like <code>fix/welcome-todo</code> in the text field that opens. The same field filters existing branches and names a new one, so &quot;no branches found&quot; is expected</li>
225+
<li>Select &quot;Create branch: fix/welcome-todo from main&quot;. With a keyboard, press <code>Tab</code> until you reach it (usually two presses, past the Tags tab), then press <code>Enter</code> or <code>Space</code></li>
226226
</ol>
227-
<p>The branch now exists on GitHub. You can switch to it using the same dropdown.</p>
227+
<p>The branch now exists on GitHub and is active. You can switch to it using the same dropdown.</p>
228228
<h2 id="in-vs-code-with-git">In VS Code (with Git)</h2>
229229
<pre><code class="hljs"><span class="hljs-symbol">git</span> checkout -<span class="hljs-keyword">b</span> fix/welcome-todo</code></pre>
230230
<p>Or use the Source Control sidebar: click the branch name in the bottom-left status bar, then select &quot;Create new branch.&quot;</p>

0 commit comments

Comments
 (0)