mirror of
				https://github.com/fooflington/selfdefined.git
				synced 2025-10-30 13:58:31 +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:
		
							
								
								
									
										15
									
								
								11ty/_includes/components/content-warning-flag.njk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								11ty/_includes/components/content-warning-flag.njk
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| {%- if | ||||
|   flag and | ||||
|   flag.text and | ||||
|   (flag.level == 'avoid') -%} | ||||
|   <div class="u-margin-bottom-double content-flag content-flag--avoid"> | ||||
|     <p class="small">We would recommend adding a content warning when speaking about this term. Please<a href="#content-warning-guide">read the guidance</a> on how and when to warn people before using this term in any context.</p> | ||||
|   </div> | ||||
| {%- elseif | ||||
|   flag and | ||||
|   flag.text and | ||||
|   (flag.level == 'warning') -%} | ||||
|   <div class="u-margin-bottom-double content-flag"> | ||||
|     <p class="small">There is a content warning against this term, we would recommend <a href="#content-warning-guide">reading the guidance</a> on warning other people before using this term in any context.</p> | ||||
|   </div> | ||||
| {% endif %} | ||||
		Reference in New Issue
	
	Block a user
	 Matthew Shields
					Matthew Shields