-
-
Notifications
You must be signed in to change notification settings - Fork 778
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 wins.js so the Wins page uses icon-github.svg #7569
base: gh-pages
Are you sure you want to change the base?
Update wins.js so the Wins page uses icon-github.svg #7569
Conversation
Want to review this pull request? Take a look at this documentation for a step by step guide! From your project repository, check out a new branch and test the changes.
|
Availability: M > F |
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.
Hi @izma-mujeeb Thank you for taking on this issue!
- The branch name is correct but I recommend you include the issue number for future reference.
- The issue is linked correctly
- The changes are correct I checked on my end I was able to see the changes using docker.
- The title and description are accurate to understand what the task/change.
Great Job! Thanks for your contribution.
Availability: 3-7pm, Mon-Fri |
I am testing these changes locally and the icon is not displaying for me. Does it display for both of you @izma-mujeeb and @codyyjxn? I'm still doing research, but all other instances of the |
Hey @8alpreet yea just check and for some reason I cant see the icon either. I think maybe the svg isn't rendering correctly. |
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.
Hey @izma-mujeeb I was looking into the code and @8alpreet actually brought up a good point but we arent able to see the github icon. Please provide screenshots of what you are seeing on your end. The before and after you fix the code. Thank you ! If you have any question feel free to message any of us.
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.
In case it's helpful--here's the error message that came up when I ran the docker container locally:
hfla_site | [2024-10-11 04:41:18] ERROR '/wins/_includes/svg/icon-github.svg' not found.
I also can't see the icon, so there's definitely a bug. Is wins/_includes
the correct path?
Hey @izma-mujeeb @8alpreet @k-cardon @codyyjxn I took a stab at figuring this out also- I am getting no further than you are. The path I do not know Liquid, but I am thinking that maybe(?) Liquid wants these assets to be in the @roslynwythe do you know more about this? |
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.
Hi @izma-mujeeb, thanks for taking on this issue!
In terms of pull request formatting, everything looks great! I do agree with @codyyjxn that the issue number should be included on the branch name but besides that there are no issues. Like others have said, I'm having issues seeing the changes on my machine. I'm unsure what the exact issue is but Jekyll has great documentation and if not mistaken should have a section on static assets and includes
@@ -330,7 +330,7 @@ | |||
|
|||
if (card[github_url].length > 0){ | |||
cloneCardTemplate.querySelector('.wins-card-github-icon').href = card[github_url]; | |||
cloneCardTemplate.querySelector('.github-icon').src = GITHUB_ICON ; | |||
cloneCardTemplate.querySelector('.github-icon').src = GITHUB_ICON; |
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.
@izma-mujeeb The liquid statement {% include svg/icon-github.svg %}
will result in an inline svg
, which should replace the existing img
tag. To accomplish this, I think you will want to make changes to both wins.js
and the html template (_includes/wins-page/wins-card-template.html/wins-card-template.html
). I should have mentioned that in the issue. I added an Action Item and Resources to the issue, to clarify.
Part of the issue is making the svg
accessible. The Resource making SVGs WCAG compliant provides sample code for doing that.
We could setup a Zoom meeting to go over this, or we could discuss it in the Thursday office hours. Please send me a Slack message and let me know your availability. If you would like to meet, please send me a Slack message.
The issue has been edited to:
|
Fixes #6911
What changes did you make?
Why did you make the changes (we will use this info to test)?
Screenshots of Proposed Changes To The Website (if any, please do not include screenshots of code changes)