Skip to content

Commit f17f018

Browse files
committed
Update howto-checkbox comments
1 parent bb4e30d commit f17f018

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

elements/howto-checkbox/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ is set to true or the `disabled` attribute is applied, the checkbox sets
2323

2424
## Reference {: #reference }
2525

26-
- [Checkbox pattern in ARIA Authoring Practices 1.1][checkbox-pattern]
27-
- [What can ARIA do?][what-aria]
26+
- [Checkbox Pattern in ARIA Authoring Practices 1.1][checkbox-pattern]
27+
- [What can ARIA Do?][what-aria]
2828
- [Using tabindex][using-tabindex]
2929

3030
[checkbox-pattern]: https://www.w3.org/TR/wai-aria-practices-1.1/#checkbox

elements/howto-checkbox/howto-checkbox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
}
161161

162162
/**
163-
* `attributeChangedCallback` is called when any of the attributes in the
163+
* `attributeChangedCallback()` is called when any of the attributes in the
164164
* `observedAttributes` array are changed. It's a good place to handle
165165
* side effects, like setting ARIA attributes.
166166
*/
@@ -212,8 +212,8 @@
212212
}
213213

214214
/**
215-
* `_toggleChecked` calls the `checked` setter and flips its state.
216-
* Because `_toggleChecked` is only caused by a user action, it will
215+
* `_toggleChecked()` calls the `checked` setter and flips its state.
216+
* Because `_toggleChecked()` is only caused by a user action, it will
217217
* also dispatch a change event. This event bubbles in order to mimic
218218
* the native behavior of `<input type=checkbox>`.
219219
*/

0 commit comments

Comments
 (0)