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

Drag & Drop seems to be broken in Firefox when Preferences > Appearance is switched to “Display button labels” #29511

Open
Tracked by #33683
trynet opened this issue Mar 3, 2021 · 9 comments
Labels
Browser Issues Issues or PRs that are related to browser specific problems [Feature] Drag and Drop Drag and drop functionality when working with blocks [Priority] Low Used to indicate that the issue at hand isn't a top priority to address and can be handled later [Type] Bug An existing feature does not function as intended

Comments

@trynet
Copy link

trynet commented Mar 3, 2021

Environment:
DesktopServer PHP 7.1.13
WP 5.7-RC2-50482
Gutenberg 10.1.0
No other plugins active
Themes Tested
TwentyTwentyOne
TwentyTwenty
Hansen

FYI - The Move Up and Move Down work as expected.

@bph
Copy link
Contributor

bph commented Mar 3, 2021

@trynet Thanks for sending in your first bug report.👏 🎉

It seems to work with Chrome. Tested it with a paragraph block or an image block
In Firefox dragging doesn't work.
Tested it in both: WP 5.7 RC2
with and without the Gutenberg plugins installed. So this is happening with the latest WP version.

Steps to reproduce:

  • Edit post
  • Set Preferences > Appearance > Display button labels
  • Add a two or three paragraphs
  • Use the "Drag" feature to move the paragraphs around.

Here is a video.

TestingDragwtextlabels-Firefox.mp4

What's really odd is that there is no error message in the browser console.
It is working as expected when the preference Display button labels is switched off.

WordPress: 5.7-RC2-50482
Theme: Twenty-Twenty-one
Firefox:87.0b5 (64-bit) (Developer Edition)
MacOS: 10.15.7
Gutenberg: deactivated.

@bph bph added [Type] Bug An existing feature does not function as intended [Feature] Drag and Drop Drag and drop functionality when working with blocks [Type] Regression Related to a regression in the latest release labels Mar 3, 2021
@noisysocks noisysocks added this to To do in WordPress 5.7 Must Haves via automation Mar 3, 2021
@noisysocks noisysocks changed the title Drag Function Does Not Work When Button Label Preference Is Turned On Drag & Drop seems to be broken in Firefox when Preferences > Appearance is switched to “Display button labels” Mar 4, 2021
@talldan talldan added Browser Issues Issues or PRs that are related to browser specific problems and removed [Type] Regression Related to a regression in the latest release labels Mar 4, 2021
@talldan
Copy link
Contributor

talldan commented Mar 4, 2021

This seems to be a bug with Firefox.

When using text labels, the button text is shown using an ::after pseudeo element. The button element has no proper text content.

This Codepen example shows what happens in Firefox. If you try dragging the first button with text, only the words 'Drag Me' can be dragged on, dragging on any of the area outside of the text (but still inside the button) doesn't work.

The second button with no text can't be dragged at all because it has no text, which is what happens with this bug:
https://codepen.io/talldan/pen/LYbrawp

Try this in Chrome and the entire area of both buttons are draggable.

I think this can be fixed by making the Drag button not use a pseudo element and have proper 'Drag' text content. Even after that, only the word 'Drag' in the button will be draggable 😬

@hellofromtonya
Copy link
Contributor

@youknowriad What about this issue, i.e. is this one to be fixed for 5.7 RC3?

@gwwar
Copy link
Contributor

gwwar commented Mar 4, 2021

Let's maybe move this to a 5.7.x release. The potential fix here looks like it might be a little risky to try at this point in the WP 5.7 release cycle.

@noisysocks
Copy link
Member

Let's maybe move this to a 5.7.x release. The potential fix here looks like it might be a little risky to try at this point in the WP 5.7 release cycle.

Agreed.

@noisysocks noisysocks removed this from To do in WordPress 5.7 Must Haves Mar 5, 2021
@bph
Copy link
Contributor

bph commented Mar 16, 2021

@noisysocks Would this be an issue for the 5.7.x board?

@skorasaurus
Copy link
Member

can confirm still an issue with Gutenberg 16.8.1 and firefox 118.0.2

@skorasaurus skorasaurus added the [Priority] Low Used to indicate that the issue at hand isn't a top priority to address and can be handled later label Oct 19, 2023
@talldan
Copy link
Contributor

talldan commented Oct 25, 2023

I'll try to follow up with the firefox bug tracker. I had pretty good success recently getting another Firefox bug fixed.

@talldan
Copy link
Contributor

talldan commented Oct 30, 2023

I was sure there was an existing firefox bug report for this, but couldn't find one, so I've made a new one - https://bugzilla.mozilla.org/show_bug.cgi?id=1862019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Browser Issues Issues or PRs that are related to browser specific problems [Feature] Drag and Drop Drag and drop functionality when working with blocks [Priority] Low Used to indicate that the issue at hand isn't a top priority to address and can be handled later [Type] Bug An existing feature does not function as intended
Projects
No open projects
Development

No branches or pull requests

7 participants