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

VerticalPages config: Add iconUrl option #730

Merged
merged 1 commit into from
Apr 24, 2020

Conversation

alexisgrow
Copy link
Contributor

Allow an implementer to specify an iconURL in the verticalPages config. This allows them to use an icon that is not in the built-in set that ships with the template bundle. If both iconUrl and icon are passed in, they will both be passed through to the IconComponent which has logic to determine which takes priority.

TEST=manual

In dev site for a Vertical page, use in an iconUrl in the verticalPages config. View in browser to confirm custom icon displays. Also test to verify that built-in icons still work.

README.md Show resolved Hide resolved
Copy link
Collaborator

@tmeyer2115 tmeyer2115 left a comment

Choose a reason for hiding this comment

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

Is this something we were supposed to add initially, but didn't? The spec just references 'icon'. Did Rose ask us to add this in to 13.3?

Copy link
Contributor Author

@alexisgrow alexisgrow left a comment

Choose a reason for hiding this comment

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

This wasn't part of spec originally. This request was from Liz/Bryan to get into v1.0.0 for the SPR-2065 item. I think the main issue is that this inconsistency makes it weird for the HH theme, because the icon (in verticalsToConfig) is used for both UniversalResults (which supports iconUrl) and No Results (which doesn't).

@alexisgrow alexisgrow merged commit a5db5ed into v0.13.3 Apr 24, 2020
@alexisgrow alexisgrow deleted the add-icon-url-to-vertical-pages branch April 24, 2020 17:51
tmeyer2115 pushed a commit that referenced this pull request Apr 24, 2020
Allow an implementer to specify an iconURL in the verticalPages config. This allows them to use an icon that is not in the built-in set that ships with the template bundle. If both iconUrl and icon are passed in, they will both be passed through to the IconComponent which has logic to determine which takes priority.

TEST=manual

In dev site for a Vertical page, use in an iconUrl in the verticalPages config. View in browser to confirm custom icon displays. Also test to verify that built-in icons still work.
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.

None yet

4 participants