Skip to content

Commit

Permalink
Merge pull request #165 from jackdomleo7/updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdomleo7 committed Jan 21, 2023
2 parents 4ca27b2 + b4b11be commit 6df01aa
Show file tree
Hide file tree
Showing 24 changed files with 1,885 additions and 775 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
- name: Clean install npm dependencies
run: npm ci
- name: Check project can build successfully
Expand All @@ -28,8 +28,8 @@ jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cypress-io/github-action@v2
- uses: actions/checkout@v3
- uses: cypress-io/github-action@v3
with:
browser: chrome
headless: true
Expand All @@ -39,11 +39,11 @@ jobs:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
- name: Clean install npm dependencies
run: npm ci
- name: Publish to npm
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Jack Domleo
Copyright (c) 2020-present Jack Domleo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ Checka11y.css is licensed under MIT. As a minimum, you are required to KEEP AND

## Contributing

_This project uses npm ≥ 8 and Node ≥ 16 - however any project using this package **does not** need these versions, they can use any version of npm & Node._
_This project uses npm ≥ 8 and Node ≥ 18 - however any project using this package **does not** need these versions, they can use any version of npm & Node._

1. Read [CONTRIBUTING](./CONTRIBUTING.md) guidelines
2. `git clone https://github.com/jackdomleo7/Checka11y.css.git` or fork the repo
Expand Down
17 changes: 9 additions & 8 deletions checka11y-errors.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*! Checka11y.css v2.3.1 | MIT License | github.com/jackdomleo7/Checka11y.css */
:root {
--checka11y-text-error: #721c24;
--checka11y-bg-error: #ffc6c6;
Expand Down Expand Up @@ -156,7 +157,7 @@ button video[controls] {
padding-bottom: 80px;
}

button:not([aria-label]):not([aria-labelledby]):empty::after {
button:not([aria-label], [aria-labelledby]):empty::after {
display: block;
font-size: 1rem;
font-family: verdana, geneva, tahoma, sans-serif;
Expand All @@ -174,7 +175,7 @@ button:not([aria-label]):not([aria-labelledby]):empty::after {
background-color: var(--checka11y-bg-error);
}

[dir]:not([dir=rtl]):not([dir=ltr]):not([dir=auto])::after {
[dir]:not([dir=rtl], [dir=ltr], [dir=auto])::after {
display: block;
font-size: 1rem;
font-family: verdana, geneva, tahoma, sans-serif;
Expand Down Expand Up @@ -494,7 +495,7 @@ a video[controls] {
padding-bottom: 80px;
}

a[href]:not([aria-label]):not([aria-labelledby]):empty::after {
a[href]:not([aria-label], [aria-labelledby]):empty::after {
display: block;
font-size: 1rem;
font-family: verdana, geneva, tahoma, sans-serif;
Expand All @@ -512,7 +513,7 @@ a[href]:not([aria-label]):not([aria-labelledby]):empty::after {
background-color: var(--checka11y-bg-error);
}

dl > *:not(dt):not(dd)::after {
dl > *:not(dt, dd)::after {
display: block;
font-size: 1rem;
font-family: verdana, geneva, tahoma, sans-serif;
Expand All @@ -530,7 +531,7 @@ dl > *:not(dt):not(dd)::after {
background-color: var(--checka11y-bg-error);
}

ol > *:not(li):not(script):not(template)::after, ul > *:not(li):not(script):not(template)::after {
ol > *:not(li, script, template)::after, ul > *:not(li, script, template)::after {
display: block;
font-size: 1rem;
font-family: verdana, geneva, tahoma, sans-serif;
Expand All @@ -548,7 +549,7 @@ ol > *:not(li):not(script):not(template)::after, ul > *:not(li):not(script):not(
background-color: var(--checka11y-bg-error);
}

nav:not([aria-label]):not([aria-labelledby]) ~ nav::after, nav ~ nav:not([aria-label]):not([aria-labelledby])::after {
nav:not([aria-label], [aria-labelledby]) ~ nav::after, nav ~ nav:not([aria-label], [aria-labelledby])::after {
display: block;
font-size: 1rem;
font-family: verdana, geneva, tahoma, sans-serif;
Expand Down Expand Up @@ -578,7 +579,7 @@ a[href][tabindex="-1"]::after {
text-decoration: none;
text-transform: initial;
text-shadow: none;
content: "ERROR (E0014): Ensure that <a> with an href attribute does not have a tab index of -1." !important;
content: "ERROR (E0014): Ensure that <a> with an href attribute does not have a tab index of -1." !important;
color: var(--checka11y-text-error);
border: 0.4rem solid var(--checka11y-border-error);
background-color: var(--checka11y-bg-error);
Expand Down Expand Up @@ -636,7 +637,7 @@ button:not([disabled])[tabindex="-1"]::after {
text-decoration: none;
text-transform: initial;
text-shadow: none;
content: "ERROR (E0014): Ensure that &lt;button&gt; that is not disabled does not have a tab index of -1." !important;
content: "ERROR (E0014): Ensure that <button> that is not disabled does not have a tab index of -1." !important;
color: var(--checka11y-text-error);
border: 0.4rem solid var(--checka11y-border-error);
background-color: var(--checka11y-bg-error);
Expand Down
2 changes: 1 addition & 1 deletion checka11y-errors.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions checka11y-warnings.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Checka11y.css v2.3.0 | MIT License | github.com/jackdomleo7/Checka11y.css */
/*! Checka11y.css v2.3.1 | MIT License | github.com/jackdomleo7/Checka11y.css */
:root {
--checka11y-text-warning: #856404;
--checka11y-bg-warning: #ffffd8;
Expand Down Expand Up @@ -69,7 +69,7 @@
padding-bottom: 80px;
}

[onclick]:not(a):not(button):not([onkeydown]):not([onkeyup]):not([onkeypress])::after, [onclick][onkeyup]:not([tabindex]):not(a):not(button)::after, [onclick][onkeyup][tabindex="-1"]:not(a):not(button)::after, [onclick][onkeydown]:not([tabindex]):not(a):not(button)::after, [onclick][onkeydown][tabindex="-1"]:not(a):not(button)::after, [onclick][onkeypress]:not([tabindex]):not(a):not(button)::after, [onclick][onkeypress][tabindex="-1"]:not(a):not(button)::after, [ondblclick]:not(a):not(button):not([onkeydown]):not([onkeyup]):not([onkeypress])::after, [ondblclick][onkeyup]:not([tabindex]):not(a):not(button)::after, [ondblclick][onkeyup][tabindex="-1"]:not(a):not(button)::after, [ondblclick][onkeydown]:not([tabindex]):not(a):not(button)::after, [ondblclick][onkeydown][tabindex="-1"]:not(a):not(button)::after, [ondblclick][onkeypress]:not([tabindex]):not(a):not(button)::after, [ondblclick][onkeypress][tabindex="-1"]:not(a):not(button)::after, [onmousedown]:not(a):not(button):not([onkeydown]):not([onkeyup]):not([onkeypress])::after, [onmousedown][onkeyup]:not([tabindex]):not(a):not(button)::after, [onmousedown][onkeyup][tabindex="-1"]:not(a):not(button)::after, [onmousedown][onkeydown]:not([tabindex]):not(a):not(button)::after, [onmousedown][onkeydown][tabindex="-1"]:not(a):not(button)::after, [onmousedown][onkeypress]:not([tabindex]):not(a):not(button)::after, [onmousedown][onkeypress][tabindex="-1"]:not(a):not(button)::after, [onmouseup]:not(a):not(button):not([onkeydown]):not([onkeyup]):not([onkeypress])::after, [onmouseup][onkeyup]:not([tabindex]):not(a):not(button)::after, [onmouseup][onkeyup][tabindex="-1"]:not(a):not(button)::after, [onmouseup][onkeydown]:not([tabindex]):not(a):not(button)::after, [onmouseup][onkeydown][tabindex="-1"]:not(a):not(button)::after, [onmouseup][onkeypress]:not([tabindex]):not(a):not(button)::after, [onmouseup][onkeypress][tabindex="-1"]:not(a):not(button)::after, [onmouseover]:not(a):not(button)::after, [onmouseenter]:not(a):not(button)::after, [onmouseleave]:not(a):not(button)::after {
[onclick]:not(a, button, [onkeydown], [onkeyup], [onkeypress])::after, [onclick][onkeyup]:not([tabindex], a, button)::after, [onclick][onkeyup][tabindex="-1"]:not(a, button)::after, [onclick][onkeydown]:not([tabindex], a, button)::after, [onclick][onkeydown][tabindex="-1"]:not(a, button)::after, [onclick][onkeypress]:not([tabindex], a, button)::after, [onclick][onkeypress][tabindex="-1"]:not(a, button)::after, [ondblclick]:not(a, button, [onkeydown], [onkeyup], [onkeypress])::after, [ondblclick][onkeyup]:not([tabindex], a, button)::after, [ondblclick][onkeyup][tabindex="-1"]:not(a, button)::after, [ondblclick][onkeydown]:not([tabindex], a, button)::after, [ondblclick][onkeydown][tabindex="-1"]:not(a, button)::after, [ondblclick][onkeypress]:not([tabindex], a, button)::after, [ondblclick][onkeypress][tabindex="-1"]:not(a, button)::after, [onmousedown]:not(a, button, [onkeydown], [onkeyup], [onkeypress])::after, [onmousedown][onkeyup]:not([tabindex], a, button)::after, [onmousedown][onkeyup][tabindex="-1"]:not(a, button)::after, [onmousedown][onkeydown]:not([tabindex], a, button)::after, [onmousedown][onkeydown][tabindex="-1"]:not(a, button)::after, [onmousedown][onkeypress]:not([tabindex], a, button)::after, [onmousedown][onkeypress][tabindex="-1"]:not(a, button)::after, [onmouseup]:not(a, button, [onkeydown], [onkeyup], [onkeypress])::after, [onmouseup][onkeyup]:not([tabindex], a, button)::after, [onmouseup][onkeyup][tabindex="-1"]:not(a, button)::after, [onmouseup][onkeydown]:not([tabindex], a, button)::after, [onmouseup][onkeydown][tabindex="-1"]:not(a, button)::after, [onmouseup][onkeypress]:not([tabindex], a, button)::after, [onmouseup][onkeypress][tabindex="-1"]:not(a, button)::after, [onmouseover]:not(a, button)::after, [onmouseenter]:not(a, button)::after, [onmouseleave]:not(a, button)::after {
display: block;
font-size: 1rem;
font-family: verdana, geneva, tahoma, sans-serif;
Expand Down
Loading

0 comments on commit 6df01aa

Please sign in to comment.