[tantek]I am giving this a shot to better distinguish links in monochrome modes: @media screen and (monochrome) { :link,:visited { font-weight: bold;} }
superkuh, duanin2, srazkvt, barnaby, posixlycorrect, grufwub, oodani, MD87, ax562, NegateThis, cotsuka, gRegorLove__ and [artlung] joined the channel; geoffo left the channel
[capjamesg]While writing my phone post, I realised that my fourth and fifth footnotes were not rendering. I forgot that in DUS I wrote my footnote code to only handle three footnotes, thinking I wouldn’t need more 😂
[mikemai2awesom]continuing my goal of writing as little code as possible, here's another tiny css https://codepen.io/mikemai2awesome/pen/NPRgeOy. this simple snippet will help you build lightweight and accessible presentation slides.
[mikemai2awesom]i organize with layers for convenience of writing everything in one file. the first line sets the order. then what follows can be in any order i want. if i am working on the demo UI, i bring the @layer demo all the way up to the top of the file
[mikemai2awesom]also, the layers will keep my specificity in check. if i have utility classes in my css, the utilities layer would be the last one in the first line
[morgan][mikemai2awesom] Looks good, just took a few passes at it with keyboard, inspected the HTML, Id say this has some good effort into access features
[mikemai2awesom]glad to hear! i did the .js-ready trick, the trade off is when JS is turned off, it becomes a long scroll with no fading, but that beats elements starting at opacity 0 (which is not accessible).
[morgan]reading a few of your CSS comments, it seems helpful, and it seems you had a lot of fun or interest making this. Its got me inspired a little to work on my own site in a slightly different tabs pattern, but Im going to test it a little more, and Im inspired by your use of scroll snap for my own site
[morgan]Ok, this is dev for my own site, Im looking at a starting point here: https://htmx.org/examples/tabs-hateoas/ . I want to test it to see if I can make it pass basic keyboard tests and have semantic markup. Im inspired by your scroll snap to try and make tabs that expend to fill a container, and extend downwards if scrolling down otherwise swaps the tab.
[morgan]The modern part here is the CSS, Intersection Observer is not super familiar to me but very much a thing people use for interactive things like this
[mikemai2awesom]i am in the camp of "tabs are hard to use" for most assistive tech users, so i rather not use those roles. taking away the skeuomorphic aesthetic of tabs, they are essentially different sections on the page. do i really need those roles?
[morgan]Im curious about the roles, but basically, I want to use simple `/get` requests with that library to include HTML partials onto the page, I was thinking of using tabs, but now maybe my page will use a different pattern, one that has some control element to it but also works a bit easier
[mikemai2awesom]i think i am picking up what you are saying. if i add pagination controls to my code, and change the css to look like tabs. then i would have transformed the slider into tabs, with the exact same markup.
[morgan]Nice! Yeah basically I want to add some interactivity to my site, preferably with the one single library I have right now thats very small. But the tabs example doesnt seem to be very easy to amend without testing Im not proficient in, that you point out a few gaps in its access features.