-
Notifications
You must be signed in to change notification settings - Fork 85
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
Remove background color from sidebar action #1359
Remove background color from sidebar action #1359
Conversation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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.
Fine with me, cypress regression base images need an update though. You can update them with npm run cypress:update-snapshots
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Fun, seems like spell checking caused a diff here. |
@skjnldsv These are the things I was afraid of and proposed to run cypress inside a docker container also locally 🙈 |
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.
No, it was per Jan's request on the initial drafts to include this default background so it's easier to notice.
What does spell checking means here? |
I'll be honest, that's funny :p |
So besides that the actual idea of this PR is not wanted by Jan, should we do something about that Cypress issue, i.e. move local cypress to docker? 🙈 |
Again, I'd like to avoid this, we'll lose all flexibility from the official cypress github actions. |
https://docs.cypress.io/api/plugins/browser-launch-api.html#Changing-browser-preferences // cypress/plugins/index.js
module.exports = (on, config) => {
on('before:browser:launch', (browser, launchOptions) => {
if (browser.family === 'chromium' && browser.name !== 'electron') {
launchOptions.preferences.default['browser.enable_spellchecking'] = false
return launchOptions
}
if (browser.family === 'firefox') {
launchOptions.preferences['layout.spellcheckDefault'] = 0
return launchOptions
}
if (browser.name === 'electron') {
launchOptions.preferences.spellcheck = false
return launchOptions
}
})
} |
#1363 should disable the spell checking for cypress. Please test. |
I think it gives the wrong hint since we usually use that style for hover/focus feedback. Especially when using it in the compact sidebar mode this looks odd to me: Let's see what @jancborchardt thinks about that once he is back. |
Compact shouldn't have the background. Only expanded. |
Ok, then let's close this for now. |
Then this is an issue. |
AH, right. |
Sorry, I just thought of "expanded" as the opposite of "compact". But we can call it "non-compact" or so 😉 |
The default action or menu should not have a background color set:
Before:
After: