Skip to content

Commit

Permalink
docs: switch to wrench emoji for auto-fixable rules (#16545)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Nov 17, 2022
1 parent bc0547e commit f743816
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/.eleventy.js
Expand Up @@ -247,7 +247,7 @@ module.exports = function(eleventyConfig) {

eleventyConfig.addShortcode("fixable", () => `
<div class="rule-category">
<span class="rule-category__icon">🛠 <span class="visually-hidden">Fixable</span></span>
<span class="rule-category__icon">🔧 <span class="visually-hidden">Fixable</span></span>
<p class="rule-category__description">
if some problems reported by the rule are automatically fixable by the <code>--fix</code> command line option
</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/src/_includes/components/rule-categories.macro.html
Expand Up @@ -11,7 +11,7 @@
{%- endif -%}
{%- if params.fixable -%}
<div class="rule-category">
<span class="rule-category__icon">🛠 <span class="visually-hidden">Fixable</span></span>
<span class="rule-category__icon">🔧 <span class="visually-hidden">Fixable</span></span>
<p class="rule-category__description">
Some problems reported by this rule are automatically fixable by the <code>--fix</code> <a href="../user-guide/command-line-interface#--fix">command line</a> option
</p>
Expand Down Expand Up @@ -39,7 +39,7 @@

{%- macro fixable() -%}
<div class="rule-category">
<span class="rule-category__icon">🛠 <span class="visually-hidden">Fixable</span></span>
<span class="rule-category__icon">🔧 <span class="visually-hidden">Fixable</span></span>
<p class="rule-category__description">
if some problems reported by the rule are automatically fixable by the <code>--fix</code> command line option
</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/_includes/components/rule.macro.html
Expand Up @@ -37,7 +37,7 @@
{%- endif -%}

<p class="rule__categories__type" {% if params.categories.fixable == false %}aria-hidden="true" {%- endif -%}>
🛠 <span class="visually-hidden">Fix</span>
🔧 <span class="visually-hidden">Fix</span>
</p>
<p class="rule__categories__type" {% if params.categories.hasSuggestions == false %}aria-hidden="true" {%- endif -%}>
💡 <span class="visually-hidden">Suggestions</span>
Expand Down

0 comments on commit f743816

Please sign in to comment.