Closed (fixed)
Project:
Drupal core
Version:
8.4.x-dev
Component:
settings_tray.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Jul 2017 at 16:58 UTC
Updated:
30 Aug 2017 at 20:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersThis actually has the necessary CSS already:
… but that was broken by #2815831: Move Off-canvas related CSS from drupal.outside_in library to drupal.off_canvas, which updated the attributes used in
outside-in-page-wrapper.html.twigwithout updating the CSS selectors too.See https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events.
Simply fixing the CSS selectors is enough.
Comment #3
tedbowWhy use a data attribute here instead of
.dialog-off-canvas__main-canvas. This class is used throughout the CSS in this moduleComment #4
wim leersDone.
But that's exactly what I'm going to file another issue for: the presence of both classes and
data-attributes. Out of scope here though.Comment #7
andrewmacpherson commentedThis patch works, on manual mouse testing. Seems like a simple regression, and we're just restoring behaviour that was already decided.
It also stops a caret-insertion pointer when hovering over text inputs (e.g. the text input in the search block, present in Bartik from Standard install profile).
There are some other places (buttons) where we are using
cursor: pointerinappropriately, but I'll file a separate issue for that, since it doesn't involve outside_in module, and doesn't involveComment #8
tedbowWe had to add this test module outside_in_test_css because of known bug with PointerEvents and testbots. Had to update that module too.
See #2782915-39: Standardize the behavior of links when Outside In editing mode is enabled.
It gets the test to pass and can't really test for mouse pointers anyways.
Comment #9
wim leers#8++ — I'd never have figured that out!
To RTBC per #7.
Comment #10
xjmThis patch doesn't resolve the issue for me. I still get the "hand" cursor instead of the text cursor when hovering over (e.g.) the "Site name" editing field in the sidebar tray.
Comment #11
wim leers#10: Are you sure you disabled CSS aggregates or forced them to be rebuilt? Are you sure you cleared your browser cache?
Both I and #7 did manual testing and found it to work.
Comment #12
xjmYes, of course I did. Installed a fresh site with the patch, cleared browser cache, Incognito mode, etc.
Comment #13
xjmI would take a screenshot to prove it, but screenshots exclude your cursor.
Comment #14
star-szrI tested this and was only focusing on the main canvas (and was about to commit), but what @xjm is talking about is with the off canvas tray. Crossed wires somewhere along the way, although both are valid to address, and maybe we can address both in this issue.
#10:
Which I can confirm hasn't changed with this patch. The site name and slogan fields in the sidebar tray show a pointer cursor where they should show a
textcursor. Only thelabelelement should show a pointer. There is some CSS that applies acursor: pointerto a ton of form elements in the off-canvas form which doesn't seem right.(Edited to clarify and correct the last sentence)
Comment #15
wim leersThat's also how I understood it, tested it, and patched it. And how everybody else here has been reviewing/testing it AFAICT.
AHHHHHHHH 💡
Comment #16
wim leersUpdated title & IS for accuracy.
@Cottser++
@Cottser++
@Cottser++
Comment #17
wim leersComment #18
tedbow@Cottser thanks for catching that.
Checking Pointers manually
Without patch
In main canvas
In off-canvas tray
With patch
In main canvas
In off-canvas tray
Comment #19
wim leersBased on #18's manual testing.
Comment #20
andrewmacpherson commentedWow, what a mix up! I had the same misunderstanding about the issue.
There are some other incorrect mouse cursors, such as:
Buttons should not have cursor: pointer. (The CSS recs say the hand pointer for links only, as do UI guidelines form Microsoft and Apple. The MDN wiki is at odds with these.)
There's some other downright strange stuff too, like the dialog title having an editing caret on hover.
However these issues occur regardless of whether outside_in module is enabled, so I'll file follow-up issues about them.
Comment #22
andrewmacpherson commentedSome CSS file names changed after #2826722: Add a 'fence' around settings tray with aggressive CSS reset.
Comment #23
tedbowChecking Pointers manually same checks as #18
Without patch
In main canvas
In off-canvas tray
So only the "main canvas" is wrong now without the patch. #2826722: Add a 'fence' around settings tray with aggressive CSS reset. fixed the off-canvas issues
With patch
In main canvas
In off-canvas tray
so now the only changes needed are to replace the outdated
#main-canvasto.dialog-off-canvas__main-canvasI have checked and these are also the only occurrence of
#main-canvasin the module.Comment #24
tedbowAdding "Needs manual testing" because the reviewer should probably do this.
Comment #25
dyannenovaI've manually tested this and patch #23 is working correctly.
Comment #27
xjmI still get the hand on the text fields in the sidebar instead of the text cursor, with this patch in a fresh install on simplytestme.
Steps to reproduce:
I even tested it in Safari to prove it wasn't any caching anything.
Comment #29
star-szrLatest patch looks like it's missing the changes from outside_in.theme.css and outside_in.form.css. (See #17)
Comment #30
wim leersYup, #23 is an incomplete rebase of #17. Probably due to not
git adding after resolving conflicts.Comment #31
wim leersThis one apparently already happened in #2826722: Add a 'fence' around settings tray with aggressive CSS reset..
Apparently #2826722: Add a 'fence' around settings tray with aggressive CSS reset. added
9 times, and removed it 2 times.
Which means this patch needs to be thoroughly re-tested, since things have changed quite a bit.
Comment #32
tedbowChecking Pointers manually same checks as #18
Without patch
In main canvas
In off-canvas tray
So only the "main canvas" is wrong now without the patch. #2826722: Add a 'fence' around settings tray with aggressive CSS reset. fixed the off-canvas issues
With patch
In main canvas
In off-canvas tray
Manual tests show the same as #23 which is correct
Comment #35
star-szrIt's strange that the labels with a "for" attribute are not
cursor: pointerbut that's out of scope for this issue.Committed and pushed 8742371f7c to 8.5.x and 084780a642 to 8.4.x. Thanks!
Comment #37
tedbowChanging to new settings_tray.module component. @drpal thanks for script help! :)