⚠️ Add flag design for content warning (#120)

* ⚠️ Add flag design for content warning

* Fix build error

* Lol fix build error

* Added terms
This commit is contained in:
Tatiana Mac
2020-05-09 19:31:20 -07:00
committed by tatianamac
parent e05ad44ae8
commit 878b474f32
36 changed files with 256 additions and 16 deletions

View File

@ -5,6 +5,11 @@
definition.data.flag.text and
(definition.data.flag.level == 'avoid') -%}
<span class="flag__red">{{ definition.data.flag.text }}</span>
{%- elseif
definition.data.flag and
definition.data.flag.text and
(definition.data.flag.level == 'warning') -%}
<span class="flag__yellow">{{ definition.data.flag.text }}</span>
{% endif %}
{%- if definition.data.sub_terms -%}
<ul class="sub-terms" role="list" aria-label="{{definition.data.title}}">