WordPress Developer Ukraine, Kyiv
CSS Reading Flow: Logical Order for Grid and Flex Layouts

CSS Reading Flow: Logical Order for Grid and Flex Layouts

reading-flow: keyboard order that follows a grid or flex layout Grid and flexbox make it easy to place items visually in a different order than in the HTML: order, grid-area, flex-direction: row-reverse, dense packing. Keyboard and screen reader users still move through the HTML order, so the focus jumps around the screen. The CSS property…
CSS Anchor Positioning: Tooltips and Dropdowns Without JS

CSS Anchor Positioning: Tooltips and Dropdowns Without JS

CSS anchor positioning: tooltips and dropdowns without a positioning library A tooltip has to sit next to its button, stay inside the viewport and move to the other side when there is no room. JavaScript libraries like Popper and Floating UI exist only for this, and they recalculate positions on every scroll and resize. CSS…