Hey,
Let’s construct web sites for each one in every of us: »On the finish of 2021, roughly 7.8 million severely disabled folks had been residing in Germany. […] The proportion of severely disabled folks within the complete inhabitants in Germany stood at 9.4%.« – Statistisches Bundesamt
After I first stumbled upon these numbers, I couldn’t consider them. It’s another reason to find out about digital accessibility now. We’re all people with totally different strengths, weaknesses, backgrounds, wants, and prospects. I believe each human being ought to be capable to work together with the web sites we’re constructing. If you happen to solely have time for one subject this week, please try The A11Y Project.
This time Malte wrote the intro.
Information
- Firefox 103 is out and brings
backdrop-filter
in CSS,:modal
, andscroll-snap-stop
. - Lastly Docosaurus 2 was launched and brings some good options to construct higher static-site generated documentations to your initiatives.
- Google Chrome 105 is out and brings assist for the CSS
:has()
selector (means Safari and Chrome now in secure), Container Queries (Chrome and Safari Tech Preview), and the Sanitizer API (yay frontend safety!).
Generic
UI/UX
Internet Efficiency
HTML & SVG
- This github repository incorporates all the best practices to serve an image on a website right this moment. Whereas it was so simple as
<img src=" alt=" width="400" peak="300">
after I began internet improvement, we now usually want complicated<image>
snippets to serve the perfect dimension, format with numerous fallbacks. Positively a very good useful resource to recollect or a snippet you need to be mindful for all of your initiatives.
Accessibility
JavaScript
- I don’t often hyperlink to YouTube movies however this one is sort of essential: Jake and Cassie share why we shouldn’t rely on
DOMContentLoaded
events anymore in JavaScript however as an alternative trace the right script load in HTML already through the use of<script src=" defer>
. And in the event you want the script earlier than your content material is completed, useasync
as attribute as an alternative. I’ve numerous deferred scripts containing a DOMContentLoaded occasion, too. This isn’t mandatory and might even trigger undesirable side-effects.
CSS
- Craig Buckler explains when and what we can use the modern CSS selectors for. And whereas
:is()
and:the place()
primarily make your CSS code extra readable (scss, much less solved it for you earlier than),:has()
now affords an actual mother or father choice and subsequently lastly permits nice styling choices we couldn’t clear up in CSS alone earlier than. - Miriam Suzanne shares how to use Container Queries in CSS and though not obtainable in most browsers but, it’s a good suggestion to already familiarize yourself with the brand new means of constructing layouts in CSS. It’s coming quickly to browsers and can change how we construct layouts for the higher.
- Chen Hui Jing on how one can obtain a gradient background on text using CSS and why it’s nonetheless a good suggestion to not fully depend on static CSS sizing however wrap HTML round it for when the font or textual content itself modifications.
- Temani Afif shares a few ideas how one can use CSS Grid and Customized Shapes to realize good layouts in the first part and second part of the tutorial. I believe the demos aren’t the visually most interesting ones with dummy content material however they present what’s doable and now it’s as much as us to make use of it and implement this into good consumer interfaces.
- In today’s browsers, the CSS
:empty
selector matches<p></p>
and<p><!-- remark --></p>
however not<p> </p>
. This behaviour shouldn’t be in keeping with the specification, which states that :empty must also match components that comprise solely white area nevertheless it stays open whether or not browsers will change this. - Pawel Grzybek proves which you can create simple carousels utilizing solely CSS and no line of JavaScript. The one caveat is you don’t get accessibility for it so possibly improve it with a couple of traces of JavaScript if it’s not solely presentational.
Work & Life
Transcend…
- On the core of many difficulties is an absence of belief — particularly trust in ourselves but also trusting other people in our lives. All of the issues Leo describes on this article are widespread to me and others. We should always study to belief different actual folks once more, not less than greater than machines, greater than nameless folks writing publicly. And we have to belief ourselves extra once more. It doesn’t imply to be bolder however to narrate to ourselves higher once more, take heed to our physique, our thoughts, and to react to those indicators fastidiously and with a rational thoughts.
- I like this helpful and quick checklist of issues I ought to take into account and do when I’m feeling drained by Leo Babauta. Generally it’s completely wonderful to have a low-energy, low-concentration and non-perfect temper day.
If you happen to like this article, you may contribute right here. Thanks!
Anselm
#Version #Anselm #Hannemann