Skip to content

Commit

Permalink
fix: disallow compound words with cSpell (#1703)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Jan 19, 2021
1 parent daf194f commit cd797df
Show file tree
Hide file tree
Showing 43 changed files with 348 additions and 309 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.com/w3c/aria-practices.svg?branch=master)](https://travis-ci.com/w3c/aria-practices) [![Greenkeeper badge](https://badges.greenkeeper.io/w3c/aria-practices.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.com/w3c/aria-practices.svg?branch=master)](https://travis-ci.com/w3c/aria-practices)

# WAI-ARIA: Authoring Practices Guide

Expand Down
39 changes: 37 additions & 2 deletions cspell.json
Expand Up @@ -7,6 +7,7 @@
"npm"
],
"words": [
"activedescendants",
"affordance",
"alertdialog",
"Anjou",
Expand All @@ -23,11 +24,18 @@
"Bosc",
"Botr",
"Bucketwheat",
"camelcase",
"Capitan",
"Carron",
"checkmark",
"Chjat",
"citystate",
"Claremont",
"Codepen",
"codepenbutton",
"colheader",
"Colom",
"combobox's",
"comboboxes",
"commenters",
"contenteditable",
Expand All @@ -43,6 +51,7 @@
"datepicker",
"Davoust",
"Defocus",
"Deletable",
"Deque",
"DHTML",
"dialog's",
Expand All @@ -64,14 +73,18 @@
"Foltz",
"Foyle",
"Frahm",
"funders",
"Gaelle",
"Garaventa",
"geckodriver",
"Geppy",
"gridbox",
"gridcells",
"GUIs",
"Gunderson",
"Hassium",
"Hausler",
"highlighttext",
"Higley",
"Hillen",
"hljs",
Expand All @@ -88,6 +101,7 @@
"Kasper",
"kbdshortcuts",
"Kowno",
"Labelable",
"Lauke",
"Leventhal",
"Lewandowski",
Expand All @@ -111,7 +125,9 @@
"Moscovium",
"MSAA",
"multithumb",
"Navs",
"Nemeth",
"nightmode",
"Nihonium",
"nodir",
"norotate",
Expand All @@ -125,21 +141,29 @@
"Orscha",
"outdent",
"Paciello",
"PAGEDOWN",
"PAGEUP",
"perceivability",
"Philipp",
"PIAS",
"Pieters",
"Polovnyov",
"polyline",
"Popout",
"portlet",
"Presentational",
"Pseudocereal",
"radiogroups",
"rawgit",
"Rearrangeable",
"refreshable",
"respec",
"roadmap",
"Roentgenium",
"rowgroups",
"rtrim",
"Rudloff",
"ruleset",
"Sakura",
"Sanaullah",
"Scheuhammer",
Expand All @@ -152,18 +176,24 @@
"shizzle",
"Shopify",
"Smorgeni",
"sourcecode",
"Spinbuttons",
"Starkrimson",
"Studienska",
"stylelint",
"subfolders",
"submenu",
"submenu's",
"submenus",
"Sulaiman",
"tabbable",
"tabindex",
"tablist",
"tablist’s",
"tablists",
"tabpanels",
"Tatiana",
"Tennessine",
"textarea's",
"textfield",
"Thaarup",
"Thiel",
Expand All @@ -174,6 +204,7 @@
"transuranic",
"Transuranium",
"Treegrids",
"treeitems",
"Treeview",
"Tryens",
"uncheck",
Expand Down Expand Up @@ -212,13 +243,17 @@
"for=\"(?:[^\\\"]+|\\.)*\"",
"url\\(\"data\\:image/svg\\+xml.*\"\\)[,;]"
],
"allowCompoundWords": true,
"allowCompoundWords": false,
"ignorePaths": [
"cspell.json",
"**/*.min.js",
"**/*.pack.js",
"**/*.paint",
"aria-practices-DeletedSectionsArchive.html",
"examples/css/github.css",
"examples/landmarks/css/bootstrap.css",
"examples/landmarks/css/bootstrap-theme.css",
"examples/landmarks/js/visua11y.js",
"common/**",
"node_modules/**",
"package*.json",
Expand Down
4 changes: 2 additions & 2 deletions examples/disclosure/css/disclosure-navigation.css
Expand Up @@ -79,11 +79,11 @@
}

/* Styles for example page content section */
.disclosure-pagecontent {
.disclosure-page-content {
border: 1px solid #ccc;
padding: 1em;
}

.disclosure-pagecontent h3 {
.disclosure-page-content h3 {
margin-top: 0.5em;
}
2 changes: 1 addition & 1 deletion examples/disclosure/disclosure-navigation.html
Expand Up @@ -127,7 +127,7 @@ <h2 id="ex_label">Example</h2>
</li>
</ul>
</nav>
<div id="mythical-page-content" class="disclosure-pagecontent" tabindex="-1" role="region" aria-label="Mythical University sample page content">
<div id="mythical-page-content" class="disclosure-page-content" tabindex="-1" role="region" aria-label="Mythical University sample page content">
<h3 id="mythical-page-heading">Mythical University</h3>
<p>Sample content section. Activating a link above will update and navigate to this region.</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion examples/feed/css/feedDisplay.css
Expand Up @@ -3,7 +3,7 @@ body {
font-family: Helvetica, Arial, sans-serif;
}

#sidepanel {
#side-panel {
box-sizing: border-box;
display: inline-block;
padding-left: 1.5em;
Expand Down
2 changes: 1 addition & 1 deletion examples/feed/feedDisplay.html
Expand Up @@ -21,7 +21,7 @@ <h2>Recommended Restaurants</h2>
<div id="restaurant-feed" role="feed">
</div>
</section>
<section id="sidepanel">
<section id="side-panel">
<label for="delay-time-select">Select article loading delay</label>
<select id="delay-time-select" name="delay_time">
<option value="200">200 ms</option>
Expand Down
4 changes: 2 additions & 2 deletions examples/js/examples.js
Expand Up @@ -62,7 +62,7 @@ aria.widget.SourceCode = function () {
* @param {string} locationId - ID of `code` element that will display the example html
* @param {string} codeId - ID of element containing only and all of the html used to render the example widget
* @param {string} exampleHeaderId - ID of header element under which the "Open in Codepen" button belongs
* @param {string} cssJsFilesId - ID of element containing links to all the relevent js and css files used for the example widget
* @param {string} cssJsFilesId - ID of element containing links to all the relevant js and css files used for the example widget
*
* @function add
* @memberof aria.widget.SourceCode
Expand Down Expand Up @@ -362,7 +362,7 @@ function indentLines(input, indentation) {
* @param {string} exampleIndex - the example number, if there are multiple examples
* @param {string} exampleHeaderId - the example header to place the button next to
* @param {string} exampleCodeId - the example html code
* @param {string} exampleFilesId - the element containing all relevent CSS and JS file
* @param {string} exampleFilesId - the element containing all relevant CSS and JS file
*/
function addOpenInCodePenForm(
exampleIndex,
Expand Down
2 changes: 1 addition & 1 deletion examples/listbox/js/listbox.js
Expand Up @@ -359,7 +359,7 @@ aria.Listbox.prototype.checkClickItem = function (evt) {
};

/**
* Prevent text selection on shift + click for multiselect listboxes
* Prevent text selection on shift + click for multi-select listboxes
*
* @param evt
*/
Expand Down
2 changes: 1 addition & 1 deletion examples/tabs/tabs-1/js/tabs.js
Expand Up @@ -29,7 +29,7 @@
delete: 46,
};

// Add or substract depending on key pressed
// Add or subtract depending on key pressed
var direction = {
37: -1,
38: -1,
Expand Down
4 changes: 2 additions & 2 deletions examples/tabs/tabs-1/tabs.html
Expand Up @@ -46,7 +46,7 @@ <h2 id="ex_label">Example</h2>
<div role="tablist" aria-label="Entertainment">
<button type="button" role="tab" aria-selected="true" aria-controls="nils-tab" id="nils">Nils Frahm</button>
<button type="button" role="tab" aria-selected="false" aria-controls="agnes-tab" id="agnes" tabindex="-1">Agnes Obel</button>
<button type="button" role="tab" aria-selected="false" aria-controls="complexcomplex" id="complex" tabindex="-1" data-deletable>Joke</button>
<button type="button" role="tab" aria-selected="false" aria-controls="complex-complex" id="complex" tabindex="-1" data-deletable>Joke</button>
</div>

<div tabindex="0" role="tabpanel" id="nils-tab" aria-labelledby="nils">
Expand All @@ -57,7 +57,7 @@ <h2 id="ex_label">Example</h2>
<p>Agnes Caroline Thaarup Obel is a Danish singer/songwriter. Her first album, Philharmonics, was released by PIAS Recordings on 4 October 2010 in Europe. Philharmonics was certified gold in June 2011 by the Belgian Entertainment Association (BEA) for sales of 10,000 Copies.</p>
</div>

<div tabindex="0" role="tabpanel" id="complexcomplex" aria-labelledby="complex" class="is-hidden">
<div tabindex="0" role="tabpanel" id="complex-complex" aria-labelledby="complex" class="is-hidden">
<p>Fear of complicated buildings:</p>
<p>A complex complex complex.</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions examples/tabs/tabs-2/tabs.html
Expand Up @@ -46,7 +46,7 @@ <h2 id="ex_label">Example</h2>
<div role="tablist" aria-label="Entertainment">
<button type="button" role="tab" aria-selected="true" aria-controls="nils-tab" id="nils">Nils Frahm</button>
<button type="button" role="tab" aria-selected="false" aria-controls="agnes-tab" id="agnes" tabindex="-1">Agnes Obel</button>
<button type="button" role="tab" aria-selected="false" aria-controls="complexcomplex" id="complex" tabindex="-1" data-deletable>Joke</button>
<button type="button" role="tab" aria-selected="false" aria-controls="complex-complex" id="complex" tabindex="-1" data-deletable>Joke</button>
</div>

<div tabindex="0" role="tabpanel" id="nils-tab" aria-labelledby="nils">
Expand All @@ -57,7 +57,7 @@ <h2 id="ex_label">Example</h2>
<p>Agnes Caroline Thaarup Obel is a Danish singer/songwriter. Her first album, Philharmonics, was released by PIAS Recordings on 4 October 2010 in Europe. Philharmonics was certified gold in June 2011 by the Belgian Entertainment Association (BEA) for sales of 10,000 Copies.</p>
</div>

<div tabindex="0" role="tabpanel" id="complexcomplex" aria-labelledby="complex" class="is-hidden">
<div tabindex="0" role="tabpanel" id="complex-complex" aria-labelledby="complex" class="is-hidden">
<p>Fear of complicated buildings:</p>
<p>A complex complex complex.</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions examples/treeview/treeview-1/treeview-1a.html
Expand Up @@ -428,7 +428,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr data-test-id="treeitem-ariaexpanded">
<tr data-test-id="treeitem-aria-expanded">
<td></td>
<th scope="row"><code>aria-expanded=&quot;false&quot;</code></th>
<td><code>li</code></td>
Expand All @@ -440,7 +440,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr data-test-id="treeitem-ariaexpanded">
<tr data-test-id="treeitem-aria-expanded">
<td></td>
<th scope="row"><code>aria-expanded=&quot;true&quot;</code></th>
<td><code>li</code></td>
Expand Down
2 changes: 1 addition & 1 deletion examples/treeview/treeview-1/treeview-1b.html
Expand Up @@ -549,7 +549,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</ul>
</td>
</tr>
<tr data-test-id="tree-arialabelledby">
<tr data-test-id="tree-aria-labelledby">
<td></td>
<th scope="row"><code>aria-labelledby=&quot;IDREF&quot;</code></th>
<td><code>ul</code></td>
Expand Down
2 changes: 1 addition & 1 deletion scripts/create-gh-project.js
@@ -1,6 +1,6 @@
/**
* Create a file '.env' with the following:
* GITHUB_TOKEN=yourkey
* GITHUB_TOKEN=yourKey
* GITHUB_PROJECT_COLUMN_ID=yourColumnId
*
* If you want a new project created, you do not have to include a GITHUB_PROJECT_COLUMN_ID
Expand Down
4 changes: 2 additions & 2 deletions test/tests/carousel_carousel-1-prev-next.js
Expand Up @@ -50,7 +50,7 @@ ariaTest(
exampleFile,
'carousel-region-aria-roledescription',
async (t) => {
// check the aria-roledescrption set to carousel
// check the aria-roledescription set to carousel
await assertAttributeValues(
t,
ex.landmarkSelector,
Expand Down Expand Up @@ -163,7 +163,7 @@ ariaTest(
exampleFile,
'carousel-group-aria-roledescription',
async (t) => {
// check the aria-roledescrption set to carousel
// check the aria-roledescription set to carousel
await assertAttributeValues(
t,
ex.slideSelector,
Expand Down
2 changes: 1 addition & 1 deletion test/tests/carousel_carousel-2-tablist.js
Expand Up @@ -320,7 +320,7 @@ ariaTest(
async (t) => {
t.plan(1);

// check the aria-roledescrption set to carousel
// check the aria-roledescription set to carousel
await assertAttributeValues(
t,
ex.landmarkSelector,
Expand Down
2 changes: 1 addition & 1 deletion test/tests/checkbox_checkbox-2.js
Expand Up @@ -66,7 +66,7 @@ ariaTest(
ex.numCondiments,
'The attribute "aria-controls" should have ' +
ex.numCondiments +
' values seperated by spaces'
' values separated by spaces'
);

for (let id of controls) {
Expand Down

0 comments on commit cd797df

Please sign in to comment.