-
Notifications
You must be signed in to change notification settings - Fork 7
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: revert icons to simple decoration #15
Conversation
Nice, thanks @ramboz! |
Sure, it will make it both back/forward compatible in a sense and guarantee the behavior even if we iterate over the implementation. We do have to remove the sprite-related checks from the test though |
Yes, of course, the test has to be adapted to the new implementation. I was more referring to the "concurrent" aspect, just to be sure it does not break if you load the same icon twice in parallel! |
@kptdobe Are you guys handling the merge here, or should I just go ahead? |
I would prefer to integrate the tests from #12 in this PR so that we have a better coverage right for the beginning. |
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.
Changing my PR review to increase the test coverage based on the list of issues mentioned in the PR description.
I'm not sure any of those would really apply anymore. They were specific edge cases with the SVG sprite implementation. So more white-box tests than black-box ones. and the last one is already covered by #12 |
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.
ok, let's merge it and continue from here!
## [1.2.1](v1.2.0...v1.2.1) (2023-09-27) ### Bug Fixes * revert icons to simple decoration ([#15](#15)) ([17af83b](17af83b))
🎉 This PR is included in version 1.2.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Moving adobe/aem-boilerplate#253 over to the new repo.
Description
Most customers directly use svg icons as they were exported by their preferred application (Illustrator, etc.), and that markup isn't compatible with the spriting logic in most cases. On top of that, the current spriting implementation has required frequent patching and isn't likely that stable yet. As such, we want to revert to basic icons decoration by default, and move the spriting to the block party instead until it is considered mature enough.
Test URLs:
Related Issue
Motivation and Context
For the spriting to really work, it requires:
currentcolor
<style>
tag orclass
attributes)All of which require developer involvement and do not apply to the basic use cases. Hence we want to simplify the reference implementation and rather move the spriting approach to the block party.
How Has This Been Tested?
This is how the behavior used to be before we introduced the spriting logic. Additionally, this has been tested against the boilerplate, and also with BambooHR's icon-heavy pages which initially triggered the spriting discussion
Screenshots (if appropriate):
Types of changes
Checklist: