Skip to content
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

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Conversation

XhmikosR
Copy link
Member

@XhmikosR XhmikosR commented Mar 24, 2024

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.

@XhmikosR XhmikosR force-pushed the xmr/icons branch 3 times, most recently from cb5e31d to faa35fc Compare March 24, 2024 07:06
Copy link
Member

@patrickhlauke patrickhlauke left a 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)

src/layouts/partials/navbar.html Outdated Show resolved Hide resolved
src/layouts/partials/navbar.html Outdated Show resolved Hide resolved
src/layouts/partials/navbar.html Outdated Show resolved Hide resolved
patrickhlauke
patrickhlauke previously approved these changes Mar 24, 2024
@@ -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">
Copy link
Member

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)

@XhmikosR
Copy link
Member Author

@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 :)

@patrickhlauke
Copy link
Member

@XhmikosR sure, let me split this into a separate PR and then clean this one up

@patrickhlauke
Copy link
Member

Done #442

@XhmikosR XhmikosR marked this pull request as ready for review March 25, 2024 12:27
Also:

* switch Twitter to the X icon
* switch to using `default` for missing values and stop passing the default ones
@XhmikosR XhmikosR merged commit 7d32143 into main Mar 25, 2024
8 checks passed
@XhmikosR XhmikosR deleted the xmr/icons branch March 25, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants