Closed StevenDufresne closed 1 year ago
I switched the logic up a little to use the text color — thinking that it will be more consistent to use charcoal-1
text on any light backgrounds, rather than adding more cases for the different possible light backgrounds.
I also added a blueberry chevron, to match the text color & design of the banner on the theme mockups, so if/when blueberry + light blue is used, it will get a blue chevron.
Great. Thanks for jumping in.
On second thought, I don't think this is the right approach as the chevron should match the heading on the left, not the navigation color. See Showcase:
Desktop
Mobile
We could use a sibling selector instead.
Hm, I didn't realize there would be a case where they're different colors… Do they really need to be different colors? (I'm not sure which designer to ping for that question)
You can probably comment on the design: https://www.figma.com/file/nK6LcMOZMtRAQdIky3PNIA/Showcase-Pages?node-id=945%3A19010
Well, I got through half of a comment here before I put the screenshots next to each other and realized yeah… it looks odd that the chevon is blue 😅
Match link color | Match parent group color |
---|---|
I can try to play with the CSS here later to get it working :)
This PR adds a dark chevron arrow if the navigation background is white. This is somewhat short-sighted since its styles are based on
has-white-background-color
but I think it's good enough for now. An ideal approach would be to allow authors to change the colors of the chevron svgs.See https://github.com/WordPress/wporg-showcase-2022/issues/1
Screenshots
How to test the changes in this Pull Request:
#fff
, text to something dark.