Links

LGBTQ+ Flags Coded in CSS
June is Pride Month. And In this article, I will review some of the main LGBTQ+ flags out there and how we can code them in CSS and a single HTML element (keeping them responsive so that they could be double as icons.)
Getting Creative With HTML Dialog
So, how can you take dialogue box design beyond the generic look of frameworks and templates? How can you style them to reflect a brand’s visual identity and help to tell its stories? Here’s how I do it in CSS using
::backdrop
,backdrop-filter
, and animations.
CSS Only Contrast
Many of us who work with CSS and accessibility have been looking for a solution that helps provide the right amount of contrast for a given color. Unfortunately,
contrast-color()
isn’t available in any browser and there’s no references found for it in MDN or caniuse. So, do we just keep waiting? Maybe not!
Printing the web: making webpages look good on paper
Declan Chidlow takes us on a really interesting tour of the often, under-reported world of print stylesheets, how to use them and also how to debug them.
How to (not) use aria-label, -labelledby and -describedby
Always consider the first rule of ARIA use before doing anything: “If you can use a native HTML element or attribute, then do so.” For example, Adrian Roselli’s priority of methods for labeling a control are: Native HTML techniques;
aria-labelledby
pointing at existing visible text; Visibly-hidden content that is still in the page;aria-label
;
Videos

CSS if() functions
I've been playing with the new CSS
if()
function, which is pretty cool that we have this capability in CSS now. Withif()
you can use custom property values and style queries to write logical styles based on custom property values. The classic example is light and dark, but I wanted to take that a step further, and really thought about how would I actually use this in a UI.
Sponsor
Sponsored by Cloud Four
Thanks to Cloud Four for sponsoring this week’s newsletter! They solve complex responsive web design and development challenges for ecommerce, healthcare, fashion, B2B, SaaS, and nonprofit organizations.
If you’d like to help with the costs of running Friday Front-End, you can back our Patreon for as little as a dollar a month.