feat(landing): increase visual prominence of category in layer dropdown #2917
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.
Description
Increase the visual prominence of the category heading in the layer dropdown on the landing page. It does this by:
#999999
to LUI teal#00425d
Before:
After:
Intention
After adding the georeferenced historical imagery layers to Basemaps, there are many more layers in the dropdown than before. The category of these layers is also more important than before when searching, thus increasing the visual prominence of the category header will improve the UX when searching for a layer in the dropdown.
The method of inserting styles into thereact-select
Select
component feels very non-ideal, but seems to be the necessary way currently to modify the styles of the dropdown. Future work to refactor the frontend should include looking at a more comprehensive approach for styling components.PR updated with new commit which swaps to using basic CSS styles in index.css, and adding
classNamePrefix
andid
props to theSelect
component to allow the CSS selectors to have consistent names to target.Checklist
If not applicable, provide explanation of why.