-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Editor] Update the loading icon when wait for ML to take into accoun…
…t prefered-reduced-motion setting * The icon has been updated in https://bugzilla.mozilla.org/show_bug.cgi?id=1908920; * Add a linter to check that a svg element doesn't have fill="context-fill" attribute.
- Loading branch information
1 parent
f6216df
commit 36c5d19
Showing
5 changed files
with
953 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export default { | ||
rules: { | ||
valid: true, | ||
|
||
custom: [ | ||
(reporter, $, ast, { filename }) => { | ||
reporter.name = "no-svg-fill-context-fill"; | ||
|
||
const svg = $.find("svg"); | ||
const fill = svg.attr("fill"); | ||
if (fill === "context-fill") { | ||
reporter.error( | ||
"Fill attribute on svg element must not be set to 'context-fill'", | ||
svg[0], | ||
ast | ||
); | ||
} | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.