Making content-aware components using CSS :has(), grid, and quantity queries

from blog Piccalilli - Everything, | ↗ original
A big thing you need to contend with when working on design systems is anticipating all the different ways someone may use a component. The idea here is that you then preemptively provide sensible behavior and safeguards to keep things working well. An example of this is a “Simple List” component I was helping to make. It’s a workhorse component,...