-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Docs a11y: improve and simplify rules table to improve readability #18297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs a11y: improve and simplify rules table to improve readability #18297
Conversation
Personally, I'm ok with the "experimental" and "fix available" icons being in the same column, since I believe the icons are distinct enough for it to be clear. I suppose the difference in interpretation is because I see them as "indicators" (car dashboard style), and so don't care about their placement; whereas you see them as checkmarks, meaning the placement is far more important. With that in mind, I think that having different columns for each icon could work. At the very least, I think that the "fix available" icon should go in a separate column. The lopsidedness may look nicer if there are little dividing lines to make the column-ness of it more clear. I did a little CSS fiddling, and I think that it would work nicely if there's a bit more of a gap between them. In this case, I did it by editing the style table row on the deployed docs site to Basically I'm thinking something like this, in terms of the columns being consistent, but instead using empty space in cases where the rule is stable or there's no fix available. I think a better approach thank my hack would probably be to put them in two separate Do you think this approach is worth investigating further? |
I'm leaning towards separate columns. It has the added benefit that we can set an aria label on the column header |
I just tried out separate columns, and mkdocs seems to have given far too much spacing to the "status" columns, which looks pretty gross. There's no good way to fix this in Markdown as far as I know. That leaves two options imo:
|
Tried the hacky approach, and I think it works pretty nicely. One other change on the same thread: I don't think the opacity changes to indicate deprecation should apply to the status tokens, since it makes them much harder to read. I think it'd also be nice to have a strikethrough for the rule ID, since imo that's more readable than an opacity difference. What do you think? |
I'd prefer if we discuss striking out rules as a separate PR. I remember that we explored this in an initial design and deliberately decided against it. |
1e4aa78
to
9d7b536
Compare
Fixed it, and opened #18318 to discuss it. Is there anything else I can improve for this PR? |
Yippee! Thanks! |
Summary
Improves rules table to make information more readable. Resolves #18296
In my opinion, this makes it much easier to understand the list of rules. It reduces the amount of information overload, as well as resolving issues including:
Test Plan
No tests, it's just documentation. I did run them to triple-check.