feat(aio): set “avoid” class by convention (filename has “.avoid.”)
Most important for StyleGuide which lost example css class in migration. Also hides copy for “avoid” files.
This commit is contained in:

committed by
Matias Niemelä

parent
673d8ae583
commit
9ca2b4c967
@ -12,7 +12,7 @@
|
||||
}
|
||||
</code-pane>
|
||||
<code-pane title='HTML content file' language='html'><h1>Heading</h1></code-pane>
|
||||
<code-pane title='JSON data file' language='json' class='is-anti-pattern'>{ "key": "value" }</code-pane>
|
||||
<code-pane title='JSON data file' language='json' class='avoid'>{ "key": "value" }</code-pane>
|
||||
</code-tabs>
|
||||
<p></p>
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
}
|
||||
</code-pane>
|
||||
<code-pane title='HTML content file' language='html'><h1>Heading</h1></code-pane>
|
||||
<code-pane title='JSON data file' language='json' class='is-anti-pattern'>{ "key": "value" }</code-pane>
|
||||
<code-pane title='JSON data file' language='json' class='avoid'>{ "key": "value" }</code-pane>
|
||||
</code-tabs>
|
||||
<p></p>
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
}
|
||||
</code-pane>
|
||||
<code-pane title='HTML content file' language='html' linenums='true'><h1>Heading</h1></code-pane>
|
||||
<code-pane title='JSON data file' language='json' class='is-anti-pattern'>{ "key": "value" }</code-pane>
|
||||
<code-pane title='JSON data file' language='json' class='avoid'>{ "key": "value" }</code-pane>
|
||||
</code-tabs>
|
||||
<p></p>
|
||||
|
||||
@ -76,7 +76,7 @@
|
||||
</code-example>
|
||||
|
||||
<p>An "avoid" header on this one.</p>
|
||||
<code-example class="is-anti-pattern" title="hero-details.component.ts (Avoid)">
|
||||
<code-example class="avoid" title="hero-details.component.ts (Avoid)">
|
||||
<hero-details <em>nghost-pmm-5>
|
||||
<h2 </em>ngcontent-pmm-5>Mister Fantastic</h2>
|
||||
<hero-team <em>ngcontent-pmm-5 </em>nghost-pmm-6>
|
||||
|
Reference in New Issue
Block a user