Problem/Motivation
On Create Basic Page, try clicking the container around the Menu Settings menu item. Although it has a pointer, it doesn't click like the link does. (See attached image).
<details id="edit-menu" class="menu-link-form form-wrapper collapse-processed">
<summary aria-controls="edit-menu" role="button">
<a class="details-title" href="#edit-menu"><span class="details-summary-prefix visually-hidden">Show</span> Menu settings</a>
<span class="summary"> (Not in menu)</span>
</summary>
..
</details>
The a tag is clickable, and expands the div class="details-wrapper" below, but the summary does not.
Proposed resolution
Make the summary the clickable element, instead of the a tag inside of it
Comments
Comment #1
puddyglumComment #2
puddyglumChanged the click event from the link to the summary wrapper.
Comment #3
puddyglumAdded a screenshot
Comment #4
nod_That works.
Minor nitpick, can you format the code similarly to what's around?
After that change It's RTBC for me. There is no change on accessibility, the link can be focused and works the same as before (event bubble up to the summary, which triggers the behavior).
Comment #5
puddyglumBetter formatting per nod_
Comment #6
puddyglumRemoved extra ;
Comment #7
nod_It's a bit frowned upon to RTBC your own patches. It's smallish and I did say it was RTBC, just keep it in mind when working on larger patches :)
RTBC comfired.
Comment #8
puddyglumDoh! Thanks for the heads up
Comment #9
alexpottThere seems to be a lot of whitespace or a tab added to the end of line here.
Comment #10
puddyglumWhitespace removed
Comment #11
puddyglumComment #12
alexpottThere still is a single whitespace character. You can run eslint to test js coding standards.
Comment #13
puddyglumThanks, removed the extra space and tested with eslint
Comment #14
puddyglumComment #15
nod_Comment #16
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed c889a5f and pushed to 8.0.x. Thanks!