task/WP-355: Fixing issue with icons on dev/prod sites #892
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
During the testing session, we realized that all app icons in the categories are defaulting to icon-applications instead of their unique icon or the category icon on dev.cep and frontera (dev) sites. The previous PR WP-273 was working correctly on cep.test, however once deployed to dev/pprod, the logic failed. Wanted to investigate where there was a difference between local env and dev/pprod env.
Portals: cep, frontera.
Related
Changes
Testing
UI
Tested this in the console on dev.cep to make sure it would work correctly using the stylesheet available there via fetch.
This is an example of how the code was written before where it was checking for ::before only (notice function returns false)
This is an example of me manually changing the doesClassExist function to check for :before instead (now the function returns true)
Combining the two checks in the if-statement to make sure both cases are handled regardless of how css file/rules are being built in dev/pprod (still returns true)
Notes