Skip to content

Commit 0ab2f40

Browse files
committed
add retext-passive
1 parent 264bee7 commit 0ab2f40

14 files changed

+20
-17
lines changed

.remarkrc.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default {
2222
[retext, Parser],
2323
"retext-indefinite-article",
2424
"retext-diacritics",
25+
["retext-passive", { ignore: ["read", "set"] }],
2526
["retext-readability", { threshold: 6 / 7 }],
2627
[
2728
"retext-spell",

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Contributions are always welcome! Before contributing, please read the
1010
[help wanted label](https://github.com/WebComponentsGuide/webcomponents.guide/labels/help%20wanted) and/or
1111
[good first issue label](https://github.com/WebComponentsGuide/webcomponents.guide/labels/good%20first%20issue).
1212
- If you have to contribute to bigger pieces, like an idea or new section, tutorial, or blog post, then please raise an
13-
issue first! This way we can discuss an action plan and figure out a high level overview of what should be written.
13+
issue first! This way we can discuss an action plan and figure out a high level overview of what we should write.
1414

1515
### Setup
1616

@@ -23,8 +23,8 @@ $ npm install
2323
$ npm start
2424
```
2525

26-
Once this is done you can visit <http://localhost:8080/> to see the local copy of the website. As you edit files the
27-
website will automatically rebuild, and you can see the changes reflected in your browser.
26+
You can now visit <http://localhost:8080/> to see the local copy of the website. As you edit files the website will
27+
automatically rebuild, and you can see the changes reflected in your browser.
2828

2929
### Running checks/tests
3030

blog/2023-01-09-introducing-webcomponents-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ _The journey_ is a hallmark of every great framework. The plethora of front-end
4444
From [Lit][lit] to [Vue][vue] to [Svelte][svelte] to [React][react] to [Remix][remix], every one starts out with the
4545
basics, and eventually leads you to [drawing the rest of the owl][owl]. The story of Web Components lacks this. MDN
4646
provides you with all the resources to know about the building blocks, but doesn't tell you how to put them together. On
47-
how to draw the rest of the owl is left to you.
47+
how to draw the rest of the owl is down to you.
4848

4949
And building good owls - I mean UI - is _hard_. Building a component that's durable to the variety of situations it gets
5050
placed in. Capable of accepting the wide inputs it needs, accessible for sighted users, users of screen readers,
@@ -61,7 +61,7 @@ rooms. Not all the furnishings are here yet. We're working on it. But we wanted
6161
feedback and improve. We've shared early versions of the content we have so far with newcomers and seasoned experts
6262
alike. Everyone has said they've learned something new. We couldn't wait any longer.
6363

64-
The content we have is split into three sections for now:
64+
The content we have is divided into three sections for now:
6565

6666
- **[Learn][learn]**: This will take you through _the journey_. Learn the basic building blocks and learn how to connect
6767
them to make useful user experiences.

learn/components/autonomous-vs-customized-elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ into issues with code that isn't expecting to see the newly added logic.
116116
_Customized Built-ins_ have very good accessibility information built right into them. Most have an _implicit role_
117117
which means that assistive technologies know how to interpret them. For example using a _screen reader_, it is possible
118118
to navigate through all of the headings in a web page, and the purpose of form controls is explained as each one is
119-
focused (e.g. buttons are read out not only by their label but also referred to as "buttons").
119+
focused (e.g. buttons are announced not only by their label but also referred to as "buttons").
120120

121121
_Autonomous Custom Elements_, on the other hand, do not have any accessibility information built into them. Assistive
122122
technologies such as _screen readers_ will read the contents of the element as if it were plain text; treating it the

learn/components/initializing-your-component.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ components might keep a memory of things - often called _state_. All of these th
88
different techniques. You will likely use a combination of these techniques when building a component.
99

1010
It can be very useful to create things during _instantiation_, that is when the component is first created. Most likely
11-
any _state_ will want to be instantiated with each new component instance created. This can be done with _class fields_
12-
or as logic during the _constructor_.
11+
any _state_ will want to be instantiated with each new component instance created. This can be accomplished with _class
12+
fields_ or as logic during the _constructor_.
1313

1414
### Class Fields
1515

learn/components/lifecycle-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ that means:
7070
### What is `connectedCallback` good for?
7171

7272
The `connectedCallback` is called _as soon as_ the element is attached to a `document`, and so the elements
73-
`.ownerDocument` property will be set (usually that will point to the global `document` object).
73+
`.ownerDocument` property will be available (usually that will point to the global `document` object).
7474

7575
This _may_ occur _before_ an element has any children appended to it, so you should be careful not expect an element to
7676
have children during a `connectedCallback` call. This means you might want to avoid using APIs like `querySelector`.

learn/components/naming-your-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ element names like `<abbreviated-text>` or `<widget-accessory>`. Words longer th
8989
spell, so try to avoid those. Words with double letters (abbreviated, occasion, accommodate) can be tricky too. Words
9090
using different letters with the same sound (necessary, accessory) often get misspelled. Words with "silent" consonants
9191
(knack, assign, doubt) are difficult, especially people for whom English is not their first language. In these cases it
92-
might be better to replace a hard to spell word with a simpler word, e.g. `<abbreviated-text>` could be come
92+
might be better to replace a hard to spell word with a simpler word, e.g. `<abbreviated-text>` could become
9393
`<short-text>`, `<approximate-date>` could be `<rounded-date>`. Alternatively you could replace one hard to spell word
9494
with two easier to spell words that mean the same thing, for example `<establish-account>` could be `<set-up-account>`.
9595

learn/components/rendering.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ class StopWatchElement extends HTMLElement {
176176

177177
If you're using a _declarative ShadowDOM_ then you'll need to use a special API called _Element Internals_. To get to a
178178
Web Components _Element Internals_, `.attachInternals()` can be called. It can only be called once though - subsequent
179-
calls will throw an error. Internals should be kept private to a Web Component class as it contains a variety of
180-
internal APIs for a Web Component. The Element Internals API **also** has a `.shadowRoot` property, but this one can
181-
also get the _closed ShadowRoot_:
179+
calls will throw an error. Internals should remain private to a Web Component class as it contains a variety of internal
180+
APIs for a Web Component. The Element Internals API **also** has a `.shadowRoot` property, but this one can also get the
181+
_closed ShadowRoot_:
182182

183183
```html
184184
<stop-watch>

learn/javascript/classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ console.assert(mypoint instanceof Point)
3636

3737
### Defining a public API
3838

39-
Classes can be given public properties, and methods to give them features which other code can use. They can also have
39+
Classes can have public properties, and methods to give them features which other code can use. They can also have
4040
special well known methods that get automatically called during certain events:
4141

4242
```js

learn/javascript/events-in-more-detail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The [previous section][events] showed how you can add an _Event listener_ with `
1717
more than one. In fact, you can use a single function to listen to multiple different event types, if they each have
1818
different names.
1919

20-
Listeners are given the `Event` object, so the listener function can use that to determine which event type the listener
20+
Listeners are passed the `Event` object, so the listener function can use that to determine which event type the listener
2121
was called on, using `.type`:
2222

2323
```js

0 commit comments

Comments
 (0)