Skip to content

Commit 69e13fb

Browse files
committed
feat: Use modern logical CSS properties for improved internationalisation
1 parent 829f5f6 commit 69e13fb

12 files changed

Lines changed: 979 additions & 591 deletions

checka11y-errors.css

Lines changed: 255 additions & 157 deletions
Large diffs are not rendered by default.

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-warnings.css

Lines changed: 213 additions & 119 deletions
Large diffs are not rendered by default.

checka11y-warnings.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: 467 additions & 275 deletions
Large diffs are not rendered by default.

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.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "checka11y-css",
3-
"version": "2.4.0",
3+
"version": "2.5.0",
44
"description": "A CSS stylesheet to quickly highlight a11y concerns.",
55
"main": "checka11y.css",
66
"style": "checka11y.css",

src/shared/_license.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/*! Checka11y.css v2.4.0 | MIT License | github.com/jackdomleo7/Checka11y.css */
1+
/*! Checka11y.css v2.5.0 | MIT License | github.com/jackdomleo7/Checka11y.css */

src/shared/messages/_content.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
font-family: $checka11y-font-family;
88
font-weight: $checka11y-font-weight;
99
font-style: initial;
10-
padding: var(--checka11y-space-4) var(--checka11y-space-6);
10+
padding-block: var(--checka11y-space-4);
11+
padding-inline: var(--checka11y-space-6);
1112
border-radius: 0.75rem;
1213
letter-spacing: initial;
1314
text-decoration: none;
@@ -17,12 +18,14 @@
1718
@if $errorType == error and str-index($code, "E") {
1819
content: "ERROR (#{$code}): #{$message}" !important;
1920
color: var(--checka11y-text-error);
20-
border: 0.4rem solid var(--checka11y-border-error);
21+
border-block: 0.4rem solid var(--checka11y-border-error);
22+
border-inline: 0.4rem solid var(--checka11y-border-error);
2123
background-color: var(--checka11y-bg-error);
2224
} @else if $errorType == warning and str-index($code, "W") {
2325
content: "WARNING (#{$code}): #{$message}" !important;
2426
color: var(--checka11y-text-warning);
25-
border: 0.4rem solid var(--checka11y-border-warning);
27+
border-block: 0.4rem solid var(--checka11y-border-warning);
28+
border-inline: 0.4rem solid var(--checka11y-border-warning);
2629
background-color: var(--checka11y-bg-warning);
2730
} @else {
2831
@error "The $errorType must be either 'error' or 'warning' and the $code must start with either 'E' or 'W' respectively.";

0 commit comments

Comments
 (0)