-
-
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 profile icons to open in new tab on Wins page #2267
Comments
This comment has been minimized.
This comment has been minimized.
Hey, I believe that the In the win.js file, there is a comment to delete the makeIcon and makeElement function. Link to code: https://github.com/hackforla/website/blob/gh-pages/assets/js/wins.js#:~:text=makeElement%20and%20makeIcon-,function%20makeElement(elementType%2C%20parent%2C%20className)%20%7B,%7D,-function%20updateOverlay(i |
Are we able to confirm this? @macho-catt |
This task has been resolved when the Wins page was converted to use the Jekyll Template. The template includes the attribute and value for The issue just needs to be closed. |
So the linked code does open up a new tab, but I believe the problem is when you click on "see more" when on desktop view. This opens up a modal, and when you click on linkedin/github on the modal it should open a new tab (currently it opens on the same tab). As to why the class "needs to be deleted" according to the comment, I don't really know why. I would say the previous developer who worked on this wanted to rework the class but didn't have the time to.... I would say to either ignore that comment or remove that comment for now. I think the trick for this is to update the function below to have a new attribute for taret="_blank": Lines 423 to 428 in de29138
|
Availability for this week: |
@Johnnie007: Just wanted to share a point from our Sunday team meeting. We are now requesting all developers to add eta and availability at the time of picking up an issue or when you are assigned to an issue. Just wanted to let you know. Thanks for your awesome work. |
Overview
As a user while on the wins page, clicking on a Linkedin or Github link on a modal should open that profile page in a new tab. Currently - when clicking on a submission's Linkedin or Github on a modal window, the link opens in the current tab.
The modal links are dynamically created, and the
target
attribute needs to be added to that function.Action Items
makeIcon
function in our wins javascripttarget
attribute to the icon being created with a value of_blank
Resources/Instructions
Wins Page
wins.html
The text was updated successfully, but these errors were encountered: