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. |
kptdobe
left a comment
There was a problem hiding this comment.
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 |
kptdobe
left a comment
There was a problem hiding this comment.
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 orclassattributes)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: