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

LPS-197657 Remove xlink from icons #5689

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

fortunatomaldonado
Copy link
Member

https://liferay.atlassian.net/browse/LPS-197657

Xlinkhref does not work correctly when a CDN is used. This leads to an error message in console when using clay/icons.

I found that xlink is Deprecated and no longer recommended: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href

Removing it with href should work just fine unless I am missing something.
Please let me know if there are any questions or comments about this.
Thank you!

@matuzalemsteles
Copy link
Member

This is good so we can get rid of it, I remember we already had a long discussion about this but I don't remember exactly why. @pat270 or @bryceosterhaus do you remember anything about this in the past?

@pat270
Copy link
Member

pat270 commented Oct 9, 2023

@matuzalemsteles I believe it was used only to support older browsers. I think it's pretty safe to do this since we have updated what browsers we support.

@pat270 pat270 self-requested a review October 9, 2023 22:53
@john-co
Copy link

john-co commented Oct 9, 2023

I don't anticipate any functional test regressions based on the code change. Our DXP path locators don't reference xlink:href.

Low risk for DXP.

@bryceosterhaus
Copy link
Member

I remember we already had a long discussion about this but I don't remember exactly why

I had the same recollection. I don't remember why we kept it, other than browser support when it was required.

@matuzalemsteles
Copy link
Member

Okay, looks good then. I really think this was related to IE support.I go forward with this I'll just update the snapshot tests.

@matuzalemsteles matuzalemsteles merged commit 7636c27 into liferay:master Oct 11, 2023
2 checks passed
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.

5 participants