-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Update the background menu color when no theme is set. #2928
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
Conversation
Currently displays white on white
|
👋 Thanks for opening your first pull request. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines. |
|
🟢 This pull request modifies 4 files and might impact 3 other files. Details:All files potentially affected (total: 3)📄
|
|
I made a change to include a var within a var to have polaris attempt to use the background lighter theme override if provided. The reason this didn't work in earlier trials is because the css variable fallback is treated as plain text and doesn't invoke any functions -- see here. Because of this, I had to remove the hover variable and place it directly in as the fallback. I'm more than happy to discuss alternatives to this! |
44956c4 to
3ad3720
Compare
| onChange={handleSearchChange} | ||
| value={searchValue} | ||
| placeholder="Search" | ||
| showFocusBorder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make it easier for the plus team, I updated the example to use their white theme.
| focus-background-color: rgba(color('white'), 0.16), | ||
| hover-background-color: rgba(color('white'), 0.08), | ||
| active-background-color: rgba(color('black'), 0.28), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These values are used once and blocked multiple theme overrides.
|
@alexblaise you should be able to TopHat this when the tests pass there will be a Chroma check that will have a link to an example. I have updated our Themed TopBar Keys example to look like plus global navigation. Let me know if there are any issues. |
alexblaise
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
|
🎉 Thanks for your contribution to Polaris React! |
Currently displays white on white when no colour theme is provided to the the top bar. The defaults provided didn't seem correct so I'm updating them :).
WHY are these changes introduced?
Addresses issue https://github.com/Shopify/destinations/issues/760.
WHAT is this pull request doing?
Before:

After:

How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx:🎩 checklist
README.mdwith documentation changes[ ] Tophatted documentation changes in the style guide