Skip to content

Commit be4e706

Browse files
committed
Final edits (updating Steps for Labeling)
1 parent e37c210 commit be4e706

File tree

7 files changed

+36
-24
lines changed

7 files changed

+36
-24
lines changed

src/data/en.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,11 @@ learn:
508508
inputs.
509509
accessible-labels-steps-for-labeling-step-2-animated-2: >-
510510
If a canvas element is animated and/or interactive, represent its current state or qualities in the label.
511-
So long as you place the functions within the <a class = "code" href = "https://p5js.org/reference/#/p5/draw">draw()</a> function, they will automatically update with the
512-
shape’s new information. If you are using <a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use template strings to update the element’s
513-
description:
511+
So long as you place the functions within the <a class = "code" href = "https://p5js.org/reference/#/p5/draw">draw()</a> function,
512+
they will automatically update with the shape’s new information (except for <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a>
513+
and <a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a>,
514+
which will update even when listed in <a class = "code" href = "https://p5js.org/reference/#/p5/setup">setup()</a>). If you are using
515+
<a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use template strings to update the element’s description:
514516
accessible-labels-steps-for-labeling-step-2-do-donts: Labeling do’s and don’ts
515517
accessible-labels-steps-for-labeling-step-2-do-donts-1: >-
516518
<i>Don’t</i> use screen reader labels as a way of commenting your code. Labels should only summarize the

src/data/es.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,11 +518,13 @@ learn:
518518
means the <a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> and
519519
<a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a> functions won’t provide any information about these interactive
520520
inputs.
521-
accessible-labels-steps-for-labeling-step-2-animated-2: >-
521+
accessible-labels-steps-for-labeling-step-2-animated-2: >-
522522
If a canvas element is animated and/or interactive, represent its current state or qualities in the label.
523-
So long as you place the functions within the <a class = "code" href = "https://p5js.org/reference/#/p5/draw">draw()</a> function, they will automatically update with the
524-
shape’s new information. If you are using <a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use template strings to update the element’s
525-
description:
523+
So long as you place the functions within the <a class = "code" href = "https://p5js.org/reference/#/p5/draw">draw()</a> function,
524+
they will automatically update with the shape’s new information (except for <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a>
525+
and <a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a>,
526+
which will update even when listed in <a class = "code" href = "https://p5js.org/reference/#/p5/setup">setup()</a>). If you are using
527+
<a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use template strings to update the element’s description:
526528
accessible-labels-steps-for-labeling-step-2-do-donts: Labeling do’s and don’ts
527529
accessible-labels-steps-for-labeling-step-2-do-donts-1: >-
528530
<i>Don’t</i> use screen reader labels as a way of commenting your code. Labels should only summarize the

src/data/hi.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,11 +506,13 @@ learn:
506506
means the <a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> and
507507
<a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a> functions won’t provide any information about these interactive
508508
inputs.
509-
accessible-labels-steps-for-labeling-step-2-animated-2: >-
509+
accessible-labels-steps-for-labeling-step-2-animated-2: >-
510510
If a canvas element is animated and/or interactive, represent its current state or qualities in the label.
511-
So long as you place the functions within the <a class = "code" href = "https://p5js.org/reference/#/p5/draw">draw()</a> function, they will automatically update with the
512-
shape’s new information. If you are using <a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use template strings to update the element’s
513-
description:
511+
So long as you place the functions within the <a class = "code" href = "https://p5js.org/reference/#/p5/draw">draw()</a> function,
512+
they will automatically update with the shape’s new information (except for <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a>
513+
and <a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a>,
514+
which will update even when listed in <a class = "code" href = "https://p5js.org/reference/#/p5/setup">setup()</a>). If you are using
515+
<a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use template strings to update the element’s description:
514516
accessible-labels-steps-for-labeling-step-2-do-donts: Labeling do’s and don’ts
515517
accessible-labels-steps-for-labeling-step-2-do-donts-1: >-
516518
<i>Don’t</i> use screen reader labels as a way of commenting your code. Labels should only summarize the

src/data/it.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -519,11 +519,13 @@ learn:
519519
means the <a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> and
520520
<a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a> functions won’t provide any information about these interactive
521521
inputs.
522-
accessible-labels-steps-for-labeling-step-2-animated-2: >-
522+
accessible-labels-steps-for-labeling-step-2-animated-2: >-
523523
If a canvas element is animated and/or interactive, represent its current state or qualities in the label.
524-
So long as you place the functions within the <a class = "code" href = "https://p5js.org/reference/#/p5/draw">draw()</a> function, they will automatically update with the
525-
shape’s new information. If you are using <a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use template strings to update the element’s
526-
description:
524+
So long as you place the functions within the <a class = "code" href = "https://p5js.org/reference/#/p5/draw">draw()</a> function,
525+
they will automatically update with the shape’s new information (except for <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a>
526+
and <a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a>,
527+
which will update even when listed in <a class = "code" href = "https://p5js.org/reference/#/p5/setup">setup()</a>). If you are using
528+
<a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use template strings to update the element’s description:
527529
accessible-labels-steps-for-labeling-step-2-do-donts: Labeling do’s and don’ts
528530
accessible-labels-steps-for-labeling-step-2-do-donts-1: >-
529531
<i>Don’t</i> use screen reader labels as a way of commenting your code. Labels should only summarize the

src/data/ko.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,11 +450,13 @@ learn:
450450
means the <a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> and
451451
<a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a> functions won’t provide any information about these interactive
452452
inputs.
453-
accessible-labels-steps-for-labeling-step-2-animated-2: >-
453+
accessible-labels-steps-for-labeling-step-2-animated-2: >-
454454
If a canvas element is animated and/or interactive, represent its current state or qualities in the label.
455-
So long as you place the functions within the <a class = "code" href = "https://p5js.org/reference/#/p5/draw">draw()</a> function, they will automatically update with the
456-
shape’s new information. If you are using <a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use template strings to update the element’s
457-
description:
455+
So long as you place the functions within the <a class = "code" href = "https://p5js.org/reference/#/p5/draw">draw()</a> function,
456+
they will automatically update with the shape’s new information (except for <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a>
457+
and <a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a>,
458+
which will update even when listed in <a class = "code" href = "https://p5js.org/reference/#/p5/setup">setup()</a>). If you are using
459+
<a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use template strings to update the element’s description:
458460
accessible-labels-steps-for-labeling-step-2-do-donts: Labeling do’s and don’ts
459461
accessible-labels-steps-for-labeling-step-2-do-donts-1: >-
460462
<i>Don’t</i> use screen reader labels as a way of commenting your code. Labels should only summarize the

src/data/zh-Hans.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,13 @@ learn:
432432
means the <a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> and
433433
<a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a> functions won’t provide any information about these interactive
434434
inputs.
435-
accessible-labels-steps-for-labeling-step-2-animated-2: >-
435+
accessible-labels-steps-for-labeling-step-2-animated-2: >-
436436
If a canvas element is animated and/or interactive, represent its current state or qualities in the label.
437-
So long as you place the functions within the <a class = "code" href = "https://p5js.org/reference/#/p5/draw">draw()</a> function, they will automatically update with the
438-
shape’s new information. If you are using <a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use template strings to update the element’s
439-
description:
437+
So long as you place the functions within the <a class = "code" href = "https://p5js.org/reference/#/p5/draw">draw()</a> function,
438+
they will automatically update with the shape’s new information (except for <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a>
439+
and <a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a>,
440+
which will update even when listed in <a class = "code" href = "https://p5js.org/reference/#/p5/setup">setup()</a>). If you are using
441+
<a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use template strings to update the element’s description:
440442
accessible-labels-steps-for-labeling-step-2-do-donts: Labeling do’s and don’ts
441443
accessible-labels-steps-for-labeling-step-2-do-donts-1: >-
442444
<i>Don’t</i> use screen reader labels as a way of commenting your code. Labels should only summarize the

src/templates/pages/learn/accessible-labels.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function draw() {
102102
<script type="text/p5" data-p5-version="{{ version }}">
103103
function setup() {
104104
createCanvas(100, 100);
105-
//Provides an overall description of the canvas.
105+
// Provides an overall description of the canvas.
106106
describe('Text in the top right corner with red heart in the bottom right corner on a white background.');
107107
}
108108

0 commit comments

Comments
 (0)