Needs work
Project:
Drupal core
Version:
main
Component:
markup
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Jun 2014 at 06:58 UTC
Updated:
27 Apr 2023 at 19:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
quicksketchPatch.
Comment #2
quicksketchOh, hmm seems like this class *is* used in system.module.css. Very odd, why would it have the name "menu-item__link", and why would tabledrag.js be responsible for adding this class? It seems like something that should be moved to be part of the CSS for the particular table it's intended to affect.
Comment #3
mahtoranjeet commentedRemoving class from "menu-item__link" from tabledrag.js and system.module.css. Asuming it is not in used in else where. Or what is your suggestions.?
Comment #5
droplet commentedthis is adding from #75 of #1261002: Draggable tables do not work on touch screen devices. I can't find the actual usage anyway.
Comment #9
dawehnerJust a random suggestion. What about adding some JS for the menu UI and remove this additional class from the generic tabledrag.js?
Comment #18
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #19
gauravvvv commentedPatch #3, no longer applies as #18. I have re-rolled the patch. please review
Comment #20
smustgrave commentedWe have css in tabledrag.css for menu-item__link, are we 100% sure it's not used.
Comment #21
gauravvvv commentedThis CSS is applied to mobile devices, as the `.touchevents` class is available their only. But it doesn't have any effects on the element. As the parent element have property `vertical-align: middle;`. There is no need to align element by padding. I have added a screen recording for reference.
Comment #22
gauravvvv commentedComment #23
smustgrave commentedMakes sense.
Comment #24
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #25
gauravvvv commentedUnrelated failure. restoring status
Comment #26
catch#21 sounds good but if so shouldn't we also remove that CSS rule? Or at least open a follow-up.
Comment #27
gauravvvv commentedI have opened up a follow up issue for same.
#3355904: Removed unused CSS from tabledrag.css file
Comment #28
santosh_verma commented#catch i have tested the comment #27 mentioned issue, (https://www.drupal.org/project/drupal/issues/3355904).
Unused css removed after the MR,
for reference i am also adding the screenshot here.
Comment #29
santosh_verma commentedComment #30
santosh_verma commentedTested the comment #19 (forget to add this before moving to RTBC)
class removed from the element
before

after

Comment #31
bnjmnmIf you review this change with core's default styling (Stark), it looks like removing this class results in the label and tabledrag handle not being aligned. This would be a regression seen by sites not using Claro.

Because the issue was filed 9 years ago, there's a high likelihood that some sites have CSS expecting this class to be there. At the very least, the Stable 9 theme would need logic that keeps this class present so it maintains the "stable promise"
However, the image above also indicates that this class is not irrelevant. We could not remove it + all corresponding CSS. Refactoring would be needed, not just removal. At that point, there's a risk of disrupting existing sites to provide a class with a slightly better name, so I'm not sure how much incentive there is to make this change vs the disruptions it might cause + adding the Stable9 layer.
(if there's a decision to go ahead with this, there are comments in the code referencing this class that were not part of the patch. If we're removing something, all artifacts of it should be removed)