News for hackers. Stuff that matters.
Re:Mvp.css – build your landing page with only semantic HTML by forgotmypw17 on Saturday November 21, 2020 @07:12AM (#25169277)
A landing page with huge accessibility issues
Re:Mvp.css – build your landing page with only semantic HTML by scrollaway on Saturday November 21, 2020 @07:38AM (#25169362)
I wonder how you justify your use of the word "huge" here, given that it'll most likely be far better than most landing pages out there and not everyone will use the problematic components.
Re:Mvp.css – build your landing page with only semantic HTML by forgotmypw17 on Saturday November 21, 2020 @03:55PM (#25172689)
I think this comment makes a pretty clear case for it:

https://news.ycombinator.com/item?id=25168303

For me personally, the accessibility issues would be with elements used out of their usual role.

For example: When I, blessed with being sighted at this time, but without a mouse, ask my browser to identify the clickable/actionable elements on the page, it mis-identifies both unclickable elements as clickable, and clickable elements as unclickable.

I would call that a serious usability issue. And if I was not sighted, using a screen-reader, I would be very confused indeed by this landing page.

I agree that whether this qualifies as a "huge" usability issue is indeed a matter of opinion. I would certainly argue that it is a huge usability issue.

Re:Mvp.css – build your landing page with only semantic HTML by ehnto on Monday November 23, 2020 @12:20AM (#25183826)
Using the software you've got, would using role attributes be a sufficient workaround?
Re:Mvp.css – build your landing page with only semantic HTML by SippinLean on Saturday November 21, 2020 @10:31AM (#25170202)
The light grey text under "MVP.css works with the following HTML elements:" surely fails (WCAG2).

`section` has an `h2`, but no `h1` for some reason. Other failures like this.

Other than that what's wrong?

Re:Mvp.css – build your landing page with only semantic HTML by darepublic on Saturday November 21, 2020 @01:19PM (#25171537)
Is a lack of H1 a dock against accessibility?
Re:Mvp.css – build your landing page with only semantic HTML by ehnto on Monday November 23, 2020 @12:24AM (#25183845)
I think it would be, because a screen reader will try to call-out the topic of the document accurately and quickly. You don't want a user to have to dig through elements to find the real title of the page they're on.
Re:Mvp.css – build your landing page with only semantic HTML by darepublic on Tuesday November 24, 2020 @10:18AM (#25199200)
hm I've worked at plenty of places that touted accessibility, and we would often leave out h1 on a lander page (there might be a few h2 instead as the highest ranking headers)
Re:Mvp.css – build your landing page with only semantic HTML by noneeeed on Saturday November 21, 2020 @09:42AM (#25169966)
Accessibility is not something I know much about (I mostly work backend). What's the issue with this type of approach? I was tempted to use it as a starting point for a little side project, but Id rather not start with something with inherent accessibility issues.
Re:Mvp.css – build your landing page with only semantic HTML by forgotmypw17 on Saturday November 21, 2020 @04:12PM (#25172814)
The biggest issue I noticed right away is that it uses elements outside of their traditional use cases.

User agents rely on ``a`` elements being clickable, and ``span`` elements not being clickable, for example, to determine which actions to present to the user.

When you use them outside of these use cases, the user agent has to do extra work to figure out whether something is actionable or not, and not all can do it adequately.

Re:Mvp.css – build your landing page with only semantic HTML by noneeeed on Sunday November 22, 2020 @11:20AM (#25178642)
Thanks, that makes sense.