sIFR is fully accessible to screenreaders and other assistive technology. Don’t take our word for it. Ask Matt May of the W3C who endorses it as an accessible method to create rich typography on the web. Or ask Joe Clark, one of the world’s leading accessibility experts, whose interest in typography is only trumped by his interest in accessibility.
🙋♀️
🙅♀️
Today
🙌
Just read everything from @RachelAndrew and @JenSimmons
And Dark Side of the Grid from @mmatuzo
The "nav-wrap" element in the header uses display: grid, grid-template-columns: 225px 1fr, and width: auto. It contains the MarcySutton.com logo and navigation items.
an unordered list has display: grid, grid-template-columns: repeat(3, 1fr), and grid-gap: 1em. It falls back to CSS column layout for IE11.
* Until we have subgrids
display:contents
and table {display: block}
come to mind...
Grid layout gives authors great powers of rearrangement over the *visual* document. However, these are not a substitute for correct ordering of the document source. - MDN web docs
In the flex layout model, the children of a flex container can be laid out in any direction, and can “flex” their sizes, either growing to fill unused space or shrinking to avoid overflowing the parent. https://www.w3.org/TR/css-flexbox-1/
If you are adding widths to all your flex items, you probably need grid.
-Rachel Andrew
“Authors must not use order or the -reverse values of flex-flow/flex-direction as a substitute for correct source ordering, as that can ruin the accessibility of the document.” - MDN web docs
ul {
display: flex;
flex-direction: row-reverse;
}
ul {
display: flex;
flex-direction: column-reverse;
}
https://www.gatsbyjs.org/blog/2019-07-11-user-testing-accessible-client-routing/
:focus:not(.focus-visible) {
outline: 0;
}
:focus-visible,
data-focus-visible-added {
outline: 3px solid greenyellow;
}
The :focus-visible pseudo-class applies while an element matches the :focus pseudo-class and the user agent determines via heuristics that the focus should be made evident on the element. https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo
Note: The intent of :focus-visible is to allow authors to provide clearly identifiable focus styles which are visible when a user is likely to need to understand where focus is, and not visible in other cases.
outline: none
💍 ☑️
️
/* Selects a <div> when one of its descendants is focused */
div:focus-within {
background: greenyellow;
}
Add motion without JavaScript!
p {
animation-duration: 3s;
animation-name: slidein;
}
@keyframes slidein {
from {
margin-left: 100%;
width: 300%;
}
75% {
font-size: 300%;
margin-left: 25%;
width: 150%;
}
to {
margin-left: 0%;
width: 100%;
}
}
Doggo ipsum the neighborhood pupper clouds most angery pupper I have ever seen he made many woofs, borkdrive.
window.setTimeout
is the most common of hackstransitionend
event is a better toolDetect if the user has requested the system minimize animation or motion
.animation {
-webkit-animation: vibrate 0.3s linear infinite both;
animation: vibrate 0.3s linear infinite both;
}
@media (prefers-reduced-motion: reduce) {
.animation {
animation: none;
-webkit-animation: none;
}
}
(flashing content warning)
With wholesome fruits and veggies like carrots, dried kelp and blueberries, your dog is getting beneficial fiber, phytonutrients and antioxidants. Omega fatty acids are plentiful, including DHA, an omega-3 that supports healthy development of the brain and eyes. These omegas come from several sources like salmon oil and flaxseed, and they help keep your fellow adventurer’s skin and coat healthy. This recipe is grain-free and has no corn, wheat or soy, which makes it a great choice for dogs that are prone to food sensitivities.
Deboned Salmon, Chicken Meal, Turkey Meal, Peas, Sweet Potatoes, Chickpeas, Pea Protein, Chicken Fat (Preserved with Mixed Tocopherols), Dried Plain Beet Pulp, Natural Flavor, Flaxseed, Menhaden Fish Meal, Blueberries, Carrots, Salt, Salmon Oil, Dried Kelp, Fructooligosaccharides, Choline Chloride, Vitamin E Supplement, Mixed Tocopherols (Preservative), Ferrous Sulfate, Zinc Proteinate.
Weight | Daily Feeding (Cup) | Calories (Day) |
---|---|---|
3 lbs | 1/3 | 130 |
6 lbs | 2/3 | 260 |
10 lbs | 1 | 390 |
15 lbs | 1 1/3 | 520 |
20 lbs | 1 2/3 | 650 |
30 lbs | 2 1/4 | 878 |
40 lbs | 2 3/4 | 1,073 |
50 lbs | 3 1/4 | 1,268 |
60 lbs | 3 2/3 | 1,430 |
70 lbs | 4 | 1,560 |
role="tab"
aria-selected="false"
aria-hidden="true"
aria-label="Favorites"
class="sc-bdVaJa"
class="sc-bdVaJa"
(className highlighted)
Prototype UIs with HTML, CSS and little to no tooling 🔥
:focus-visible
:focus-within
=== styling powers