Skip to content

Commit 1246b38

Browse files
committed
Fix: don't use escape characters when using contentMessage
1 parent 0b3ce3b commit 1246b38

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

checka11y-errors.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ a[href][tabindex="-1"]::after {
579579
text-decoration: none;
580580
text-transform: initial;
581581
text-shadow: none;
582-
content: "ERROR (E0014): Ensure that <a> with an href attribute does not have a tab index of -1." !important;
582+
content: "ERROR (E0014): Ensure that <a> with an href attribute does not have a tab index of -1." !important;
583583
color: var(--checka11y-text-error);
584584
border: 0.4rem solid var(--checka11y-border-error);
585585
background-color: var(--checka11y-bg-error);
@@ -637,7 +637,7 @@ button:not([disabled])[tabindex="-1"]::after {
637637
text-decoration: none;
638638
text-transform: initial;
639639
text-shadow: none;
640-
content: "ERROR (E0014): Ensure that &lt;button&gt; that is not disabled does not have a tab index of -1." !important;
640+
content: "ERROR (E0014): Ensure that <button> that is not disabled does not have a tab index of -1." !important;
641641
color: var(--checka11y-text-error);
642642
border: 0.4rem solid var(--checka11y-border-error);
643643
background-color: var(--checka11y-bg-error);

checka11y-errors.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

checka11y.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ a[href][tabindex="-1"]::after {
879879
text-decoration: none;
880880
text-transform: initial;
881881
text-shadow: none;
882-
content: "ERROR (E0014): Ensure that &lt;a&gt; with an href attribute does not have a tab index of -1." !important;
882+
content: "ERROR (E0014): Ensure that <a> with an href attribute does not have a tab index of -1." !important;
883883
color: var(--checka11y-text-error);
884884
border: 0.4rem solid var(--checka11y-border-error);
885885
background-color: var(--checka11y-bg-error);
@@ -937,7 +937,7 @@ button:not([disabled])[tabindex="-1"]::after {
937937
text-decoration: none;
938938
text-transform: initial;
939939
text-shadow: none;
940-
content: "ERROR (E0014): Ensure that &lt;button&gt; that is not disabled does not have a tab index of -1." !important;
940+
content: "ERROR (E0014): Ensure that <button> that is not disabled does not have a tab index of -1." !important;
941941
color: var(--checka11y-text-error);
942942
border: 0.4rem solid var(--checka11y-border-error);
943943
background-color: var(--checka11y-bg-error);

checka11y.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/errors/features/_tabindex.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/* E0014: Ensure that the tab index of commonly tabbed to elements is not -1 */
44

55
a[href][tabindex="-1"]::after {
6-
@include contentMessage(error, "E0014", "Ensure that &lt;a&gt; with an href attribute does not have a tab index of -1.");
6+
@include contentMessage(error, "E0014", "Ensure that <a> with an href attribute does not have a tab index of -1.");
77
}
88

99
area[href][tabindex="-1"] {
@@ -23,7 +23,7 @@ textarea:not([disabled])[tabindex="-1"] {
2323
}
2424

2525
button:not([disabled])[tabindex="-1"]::after {
26-
@include contentMessage(error, "E0014", "Ensure that &lt;button&gt; that is not disabled does not have a tab index of -1.");
26+
@include contentMessage(error, "E0014", "Ensure that <button> that is not disabled does not have a tab index of -1.");
2727
}
2828

2929
iframe[tabindex="-1"] {

0 commit comments

Comments
 (0)