News
Friday Front-End in 2023
Welcome back! Things might look a bit different around here because I've had to switch newsletter services from Revue (which I loved, but Elon is shutting down) to Curated. Funny enough, I used to use Curated before I switched to Revue, so this is less of a difficult transition than I feared. Apologies if I worried anyone with my post about technical difficulties, but I'm pleased to say that after my holiday break I'm back with renewed motivation to keep things going. Let's go, 2023!
Links
2022 CSS Updates
It has been an extra jolly year for the advancement of CSS! Multiple long-awaited features were integrated into our evergreen browsers (Chrome, Edge, Firefox, and Safari) with a momentum that will stretch into 2023. Let's take a quick look under the CSS tree and unwrap the gifts we received this year!
CSS Style Queries
For me, 2022 is the best year ever for CSS. We got a lot of new stuff supported in stable browsers and it’s just like living a dream. Recently, the Chrome team released experimental support for a new proposed CSS spec, style queries. In short, they let us query the style of a container, rather than the size only. This can be helpful in cases where querying the container size isn’t enough. Let’s dig in.
Logical Border Radius
If we are working with different languages on our website we might want our border radii to change according to the writing mode or direction of our text. Logical properties give us flow-relative values. For example for Arabic text, which is written right-to-left, the border radii might need to be applied on the left side of the element, while in European languages it would be applied on the right. Fortunately there are logical property equivalents for the longhand
border-radius-
properties.
Styling a ‘pre’ That Contains a ‘code’
It’s a little weird. The
<pre>
is already a block box and the container for the<code>
; why aren’t we styling that? Because there wasn’t a way to address it directly based on its structural contents. There is now.
HTML with Superpowers
Most Web Component resources drop you right into the JavaScript parts. Ughck. That’s fine, I guess, but seeing the markup for a
<my-button>
component doesn’t make my heart or brain sing. It also doesn’t help me understand one of Web Components’ biggest mental hurdles: The Shadow DOM. To overcome this, I’ve intentionally designed my course to build out layer-by-layer from HTML→CSS→JavaScript, like how old timers learned the web development in the past.
Videos
How to Find and Fix the Top 3 Accessibility Issues
When your organization is just getting started with accessibility, it can be very difficult to know where to start. Don’t worry, in this webinar, we break down the top 3 accessibility issues based on commonality, impact, and what can be easily found and fixed with the use of automated tools.
Sponsor
Sponsored by Cloud Four
Thanks to Cloud Four for sponsoring this week’s newsletter! 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.