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

Remove background color from sidebar action #1359

Closed

Conversation

juliushaertl
Copy link
Contributor

The default action or menu should not have a background color set:

Before:
image

After:

image

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliushaertl juliushaertl added bug Something isn't working 3. to review Waiting for reviews labels Aug 28, 2020
Copy link
Contributor

@raimund-schluessler raimund-schluessler left a 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>
@juliushaertl
Copy link
Contributor Author

Fun, seems like spell checking caused a diff here.

@juliushaertl juliushaertl added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Aug 28, 2020
@raimund-schluessler
Copy link
Contributor

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 🙈

Copy link
Contributor

@skjnldsv skjnldsv left a 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.

@skjnldsv
Copy link
Contributor

Fun, seems like spell checking caused a diff here.

What does spell checking means here?
How could it cause a diff?

@raimund-schluessler
Copy link
Contributor

The red wobbly line for wrong words:

AppSidebar vue–subtitle_null–starred_false–compact_false–header_image–secondary_button–editable_true-base

@skjnldsv
Copy link
Contributor

The red wobbly line for wrong words:

I'll be honest, that's funny :p

@raimund-schluessler
Copy link
Contributor

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? 🙈

@skjnldsv
Copy link
Contributor

move local cypress to docker

Again, I'd like to avoid this, we'll lose all flexibility from the official cypress github actions.

@skjnldsv
Copy link
Contributor

https://docs.cypress.io/api/plugins/browser-launch-api.html#Changing-browser-preferences
https://github.com/electron/electron/blob/master/docs/api/browser-window.md#new-browserwindowoptions

// 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
    }
  })
}

@raimund-schluessler
Copy link
Contributor

#1363 should disable the spell checking for cypress. Please test.

@juliushaertl
Copy link
Contributor Author

No, it was per Jan's request on the initial drafts to include this default background so it's easier to notice.

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:

image

Let's see what @jancborchardt thinks about that once he is back.

@skjnldsv
Copy link
Contributor

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:

Compact shouldn't have the background. Only expanded.
Please open an issue and discuss this with Jan, I just don't want regressions :)

@juliushaertl
Copy link
Contributor Author

Ok, then let's close this for now.

@juliushaertl juliushaertl deleted the bugfix/noid/default-background-sidebar-action branch August 31, 2020 08:18
@raimund-schluessler
Copy link
Contributor

Indeed, only if the AppSidebar has an image / background set, the menu has no background.

Compact with a figure:
AppSidebar vue–subtitle_null–starred_false–compact_true–header_image–secondary_button–editable_false-base

Compact without a figure:
AppSidebar vue–subtitle_null–starred_false–compact_true–header_none–secondary_button–editable_false-base

But at least this is now consistent with an expanded sidebar with no figure 🙈 :

Expanded without a figure:
AppSidebar vue–subtitle_null–starred_false–compact_false–header_none–secondary_button–editable_false-base

@skjnldsv
Copy link
Contributor

Then this is an issue.

@skjnldsv
Copy link
Contributor

Expanded without a figure:
AppSidebar vue–subtitle_null–starred_false–compact_false–header_none–secondary_button–editable_false-base

This is not the proper screenshot ?

@raimund-schluessler
Copy link
Contributor

Expanded without a figure:
AppSidebar vue–subtitle_null–starred_false–compact_false–header_none–secondary_button–editable_false-base

This is not the proper screenshot ?

What do you mean? This is the screenshot made by cypress for
– subtitle: null
– starred: false
– compact: false
– header: none
– secondary: button
– editable: false

@skjnldsv
Copy link
Contributor

AH, right.
"Expanded" is not the term I would have used there. This is confusing 🙈

@raimund-schluessler
Copy link
Contributor

Sorry, I just thought of "expanded" as the opposite of "compact". But we can call it "non-compact" or so 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants