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

fix(templates/show-people): ensure ORCID icon can render multiple times #3131

Merged
merged 5 commits into from
Sep 22, 2020

Conversation

sidvishnoi
Copy link
Member

@sidvishnoi sidvishnoi commented Sep 22, 2020

Fixes https://github.com/w3c/respec/issues/3129

Regression from https://github.com/w3c/respec/pull/3063. Not sure why hyperHTML only rendered last instance.
Filed WebReflection/hyperHTML#401.

@@ -114,7 +93,23 @@ export default function showPeople(persons = []) {
}
if (p.orcid) {
contents.push(
html`<a class="p-name orcid" href="${p.orcid}">${orcidIcon} </a>`
html`<a class="p-name orcid" href="${p.orcid}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to do orcidIcon.cloneNode(true) instead, as the previous code was moving orcidIcon around the parents.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my! What would I do without you!

@sidvishnoi sidvishnoi changed the title fix(templates/show-people): ensure ORCID icon renders fix(templates/show-people): ensure ORCID icon can render multiple times Sep 22, 2020
Copy link
Collaborator

@saschanaz saschanaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but do we need a test?

Copy link
Collaborator

@saschanaz saschanaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@sidvishnoi sidvishnoi merged commit 6d16e5e into develop Sep 22, 2020
@sidvishnoi sidvishnoi deleted the fix-orcid-icon branch September 22, 2020 14:37
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.

ORCID icon not showing up when switching to respect-w3c
2 participants