-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Update partial icons from the latest upstream version #438
Conversation
cb5e31d
to
faa35fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On large screen, the three icon links in the navbar lack an accessible name. Adding aria-label
to them solves this (see suggested changes)
@@ -1,4 +1,4 @@ | |||
<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 16 16" role="img" fill="currentColor"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's fine not to have the role="img"
on these, as without a matching <title>
or aria-label="..."
in the <svg>
it's pointless anyway (and we do provide accessible names separately when these are used)
@patrickhlauke thanks! Can I or can you move your changes to a separate PR? That way it should be cleaner what we should do in the other repos since this PR is for the icons only :) |
@XhmikosR sure, let me split this into a separate PR and then clean this one up |
Done #442 |
Also: * switch Twitter to the X icon * switch to using `default` for missing values and stop passing the default ones
Preview: https://deploy-preview-438--bootstrapblog.netlify.app/
@patrickhlauke could you please take a look? Do we still need
role="img
?PS. You can check the code diff not the rich diff.