0
0
SASSmarkup~5 mins

Accessibility utility generation in SASS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main purpose of accessibility utilities in web development?
Accessibility utilities help make websites usable for everyone, including people with disabilities, by improving keyboard navigation, screen reader support, and visual clarity.
Click to reveal answer
intermediate
In Sass, how can you create a reusable accessibility utility for visually hiding content but keeping it readable by screen readers?
You can create a mixin that applies styles like position: absolute;, width: 1px;, height: 1px;, overflow: hidden;, and clip: rect(0, 0, 0, 0); to hide content visually but keep it accessible.
Click to reveal answer
beginner
Why should accessibility utilities use semantic HTML elements along with CSS?
Semantic HTML provides meaning and structure to content, which helps assistive technologies understand the page better. CSS alone cannot convey meaning, so combining both ensures better accessibility.
Click to reveal answer
intermediate
What Sass feature allows you to generate multiple accessibility utility classes efficiently?
Sass @mixin and @each loops let you create reusable styles and generate multiple utility classes by iterating over lists or maps, reducing repetitive code.
Click to reveal answer
beginner
Name two common accessibility utilities you might generate with Sass.
1. Visually hidden text utility for screen readers.<br>2. Focus outline utilities to improve keyboard navigation visibility.
Click to reveal answer
Which CSS property is commonly used in accessibility utilities to hide content visually but keep it readable by screen readers?
Aopacity: 0;
Bclip: rect(0, 0, 0, 0);
Cvisibility: hidden;
Ddisplay: none;
In Sass, which directive helps you create reusable style blocks for accessibility utilities?
A@import
B@function
C@mixin
D@extend
Why is it important to include focus styles in accessibility utilities?
ATo improve keyboard navigation visibility
BTo hide elements from screen readers
CTo change font size
DTo add animations
Which Sass feature allows generating multiple utility classes by looping over a list?
A@each
B@if
C@while
D@import
What is a key benefit of using accessibility utilities in your CSS?
AThey add animations
BThey reduce page load time
CThey change the site color scheme
DThey make your site usable for people with disabilities
Explain how you would create a Sass mixin for a visually hidden accessibility utility and why it is useful.
Think about how to hide content from sight but not from assistive technology.
You got /3 concepts.
    Describe two accessibility utilities you can generate with Sass and how they improve user experience.
    Consider utilities that help users who rely on keyboard or screen readers.
    You got /3 concepts.