Links
The Ideal Viewport Doesn’t Exist
The main point we’re trying to get across is that you simply do not know how users are going to visit your website or web app. You do not know what conditions your website will be visited on and you have little to no control over that. Accept that lack of control and use the limitations to breed creativity and also, laser focus your UX work.
Progressively Enhanced Form Validation, Part 3: Validating a checkbox group
Part 1 and Part 2 of this series explore the browser’s built-in HTML and CSS form validation features and how to progressively enhance the experience by layering JavaScript using the Constraint Validation API. This article extends that exploration by focusing on a form validation use case that is not handled by the browser’s native validation features: a checkbox group.
Laying out dots on a dice using display:flex & pseudo-classes
This tutorial presents via trial and error how to display the proper number of dots on dice faces - using flexbox,
:nth-child
,:is
,:not
, and wacky combinations thereof.
Scroll shadows with animation-timeline
The coolest part about this solution is that the scroll() animation only shows a shadow when there’s overflowing content that creates a scrollbar. There’s a slight bonus UX happening too where the shadow gets more prominent the “deeper” you scroll. All with just a few lines of code.
Better Context Menus With Safe Triangles
Discover how to improve the user experience of nested menus and tackle a minor yet common issue with them when the user’s pointer leaves the menu item for a moment, and the nested menu goes away, requiring the user to re-hover and try again. A well-known concept called the “safe triangle” solves this problem.
Videos
CSS Containers, What Do They Know?
How did Container Queries go from ‘impossible’ to ‘shipping’ after so many years? How do we use them, and what hidden powers do they have? What are CSS containers, and what queries can they respond to? Let’s find out!
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.