Skip to content

Commit 4849208

Browse files
Vinnldependabot[bot]
authored andcommitted
Handle new Stylelint warnings
1 parent 26ee5cc commit 4849208

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

src/app/components/client/Chart.module.scss

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,7 @@
9191
}
9292

9393
thead {
94-
// These styles are taken from
95-
// https://react-spectrum.adobe.com/react-aria/VisuallyHidden.html
96-
border: 0;
97-
clip: rect(0 0 0 0);
98-
clip-path: inset(50%);
99-
height: 1px;
100-
margin: 0 -1px -1px 0;
101-
overflow: hidden;
102-
padding: 0;
103-
position: absolute;
104-
width: 1px;
105-
white-space: nowrap;
94+
@include tokens.visually-hidden;
10695
}
10796

10897
tbody tr {

src/app/tokens.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ $width-first-column-filter-bar: 90px;
285285

286286
@mixin company-name-area {
287287
@media screen and (min-width: $screen-lg) {
288+
/* https://github.com/stylelint-scss/stylelint-config-recommended-scss/issues/369 */
289+
/* stylelint-disable-next-line no-invalid-position-declaration */
288290
min-width: 200px;
289291
}
290292
}
@@ -320,6 +322,8 @@ $width-first-column-filter-bar: 90px;
320322
// They keep an element accessible to screen readers, while making them
321323
// invisible in the viewport.
322324
border: 0;
325+
/* Redundancy is probably safest here, even if a property is deprecated (replaced by clip-path): */
326+
/* stylelint-disable-next-line property-no-deprecated */
323327
clip: rect(0 0 0 0);
324328
clip-path: inset(50%);
325329
height: 1px;

0 commit comments

Comments
 (0)