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
Badges inside tables render poorly on mobile devices. #1040
Comments
|
This is caused by the CSS and the markdown converter used by github, which is not marked. |
|
In that case, where do you recommend I submit an issue? |
|
@wlandau: Thanks. First let me say, I'm sorry hear that...having said that, I don't think the person in the issue you linked to in the badges library is correct regarding how Markdown renders tables as being the problem...that's equivalent to saying HTML sucks; because that's all Markdown and Marked do. I'm also not sure if GitHub uses the Marked library; so, most likely not us. One test to run would be to actually write the HTML for the table instead of using Markdown. If the badges render the same (with the sketchy scaling) - then it's more likely to be something with the CSS (like @Feder1co5oave mentioned)...if it's the GitHub CSS, then the issue would be submitted to GitHub - not sure how to do that one (if you find out, let me know). While GitHub may suppress the Or it could be the badges...specifically, the I tried to emulate a mobile device in my browser and could not duplicate; so, not sure what can be done to test here. Having said that, when I change the inline style to Which leads me to believe it's the first comment on the badges issue - proportional scaling. So, don't use a table to build your grid (?? - not tested but, something like this per unit): <div style="float: left">
<h2 style="...">Release</h2>
<p>[badge]<br>
[badge]<br>
[badge]</p>
</div>Believe GitHub allows HTML in their README Markdown files. This is semantically correct-ish - you're not actually displaying tabular data (results of a survey, for example). Should give you the side-by-side grid you're looking for, maybe - especially if you set a width on the And, having said all that, those badges aren't accessibly correct - not sure you really want to use them given you seem to really care about design and your users having a good experience. To be accessible the text-based alternative should describe what the image represents - right now they all say the type of badge (CRAN) instead of what the badge says (CRAN 5.0.0) - and they don't spell out the acronym. (Maybe a different issue to post in that project??). They look neat, but they are not to my esoteric and pedantic level of "anal" when it comes to the web. :) (The badge on the Marked README has the same problem in fact.) ps. If you think I'm incorrect in that last bit of drivel for some reason, let me know - that way I can stop thinking I know what I'm talking about when it comes to the accessible and semantic web. Seriously. Closing. Will reopen under the following circumstances:
Otherwise, it's either the badges or the browser vendors, to be honest. The experiment there, would be to create a table with proportionally scaling images inside a table - outside of GitHub and NOT the badges. If there's a difference, it's the browser vendor - not the badge. |
|
ps. Notice the cells in the mobile version are taller. This could be a combination of proportional scaling problem - images in the cell and the cells themselves. |
|
Thanks for all the advice, @joshbruce. Unfortunately, GitHub suppresses CSS. I have even tried Also, I should say that the README is about an R package, so I can safely assume that the intended audience already knows about CRAN, etc. |
|
Fair on the CRAN. Having said that, the accessibility issues is not whether they know what it is - it's about whether the version number is read aloud to a person using a screen reader. In this case, it is supposed to be done by the Sorry about the styles thing. Wonder why the other inlines styles make it through - maybe that's a gateway to a solution for you. Not sure why the table isn't rendering for you though - that's weird. Maybe test locally (without GitHub)?? Again, doesn't sound like an issue with marked though. |


Example
Expectation
Result
What was attempted
The text was updated successfully, but these errors were encountered: