mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-11 05:11:40 +00:00
⚠️ Adds content warning guidelines (#156)
* Move speech definition into main template * Remove speech definition from definition-content.njk * add margin top helper * add content flag components * Add selection styling to .box class * Change content warning flag styling * Add additional content warning guidance and change styling * Expand examples list * reworded topic[s] after testing in screen reader * Also adjust wording on avoid content guidelines block * Output title into content warning example * Update 11ty/_includes/components/content-warning.njk Co-authored-by: Tatiana Mac <github@tatianamac.com> * Update 11ty/_includes/components/content-warning-flag.njk Co-authored-by: Tatiana Mac <github@tatianamac.com> * Update 11ty/_includes/components/content-warning.njk Co-authored-by: Tatiana Mac <github@tatianamac.com> Co-authored-by: Tatiana Mac <github@tatianamac.com>
This commit is contained in:
@ -11,8 +11,14 @@
|
||||
<header class="definition__header">
|
||||
{% definitionFlag flag %}
|
||||
<h1 class="main-headline" >{{ title }}</h1>
|
||||
<section class="u-margin-bottom-double" aria-labelledby="definition-speech">
|
||||
<h2 id="definition-speech" class="visually-hidden">Speech</h2>
|
||||
<p class="definition-content__speech">{{ speech }}</p>
|
||||
</section>
|
||||
</header>
|
||||
{% include 'components/content-warning-flag.njk' %}
|
||||
{% include 'components/definition-content.njk' %}
|
||||
{% include 'components/content-warning.njk' %}
|
||||
{% renderDefinitionContentNextEntries title, slug, collections.definedWords %}
|
||||
</article>
|
||||
</main>
|
||||
|
Reference in New Issue
Block a user