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

W logo visually broken in the editor #51740

Closed
simison opened this issue Apr 7, 2021 · 4 comments · Fixed by #51477
Closed

W logo visually broken in the editor #51740

simison opened this issue Apr 7, 2021 · 4 comments · Fixed by #51477
Assignees
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Type] Bug

Comments

@simison
Copy link
Member

simison commented Apr 7, 2021

In the editor, the W logo is visually broken:

I don't remember seeing this border on hover before — I think the whole area just used to have brighter color on hover:

Screenshot 2021-04-07 at 11 36 32

And when I open the drawer, site title/logo breaks up, and border around logo remains visible:

Screenshot 2021-04-07 at 11 36 04

I believe the code for side nav is here: https://github.com/Automattic/wp-calypso/tree/714324a537c380b2d6135c95af9838b25247229b/apps/editing-toolkit/editing-toolkit-plugin/wpcom-block-editor-nav-sidebar

Themes I tested:

  • Independent Publisher 2
  • Alves
  • Atomic Blocks

Plugins:
Gutenberg: v10.3.1-with-autocomplete-fix
CoBlocks: 2.5.3
Editing Toolkit: 3.3976
WP AMP: 1.4.2

@simison simison added [Type] Bug [Feature] Post/Page Editor The editor for editing posts and pages. labels Apr 7, 2021
@ciampo ciampo self-assigned this Apr 7, 2021
@ciampo
Copy link
Contributor

ciampo commented Apr 7, 2021

I don't remember seeing this border on hover before

Looking at WordPress/gutenberg#29888, it seems like these border hover styles are working as expected

And when I open the drawer, site title/logo breaks up, and border around logo remains visible:

This definitely seems buggy, I'm going to take some time to reproduce and potentially fix

@simison
Copy link
Member Author

simison commented Apr 7, 2021

Aight! Thanks for digging up the PR for hover styles. :-)

@ciampo
Copy link
Contributor

ciampo commented Apr 7, 2021

And when I open the drawer, site title/logo breaks up, and border around logo remains visible:
...
I believe the code for side nav is here: https://github.com/Automattic/wp-calypso/tree/714324a537c380b2d6135c95af9838b25247229b/apps/editing-toolkit/editing-toolkit-plugin/wpcom-block-editor-nav-sidebar

I can reproduce this consistently. The issue is indeed related to ETK code, in particular to some higher-specificity rules that override some of the styles set in ETK for that button:

sidenav-logo-position-override.mp4

The good news is that #51477 already fixes this issue, by making the container div to use flexbox instead of fixed positioning (in order to test the fix, run install-plugin.sh etk add/site-icon-to-nav-sidebar on your sandbox and enable it for you test site)

@simison, since @creativecoder is AFK for the next days, I am happy to merge #51477 on his behalf. What do you think?

@simison
Copy link
Member Author

simison commented Apr 7, 2021

Yep, sounds good. Grant is also off from gardening so someone should take the work over anyway. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Type] Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants