2 hours ago · Art · hide · 0 comments

Portrait of an attr(artist) Post Nutrition Label Content Type: Text Read Time: 5 min Topics: CSS, IndieWeb Reading standards is how I relaxI wanted to fix a little thing that's been bugging me in my Bear theme — the lack of customization in the / templates. Visually, they only present the linked "previous" or "next" text. However, in my screen reader testing, VoiceOver was reading the title of the post it would be linking to. That meant the title was somewhere in the code. Sure enough: <p> <a class="previous-post" href="/{link to your last post}" title="{title of your last post}">Previous</a> <a class="next-post" href="/{link to your next post}" title="{title of your next post}">Next</a> </p> If it's there in the HTML, you can use it. I was pretty sure I could pull it off with JavaScript, but my first move whenever I hit a "does X exist" question in CSS (or HTML [or any other standards spec]) is to go straight to the W3C's module documentation. Turns out there's a whole category of…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.