Closed (duplicate)
Project:
Drupal core
Version:
11.x-dev
Component:
system.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2017 at 07:10 UTC
Updated:
9 Nov 2023 at 12:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
quicksketchComment #3
yesct commentednice summary, uses the template and everything. :)
screenshots before and after would be awesome
Comment #4
quicksketchScreenshot of title attribute in action in Firefox:
Comment #5
quicksketchBefore (no title text at all):
Comment #6
quicksketchComment #7
quicksketchComment #8
yesct commentedI think we might be trying to avoid using the word disable ...
how about instead of
Disable this module by visiting the Uninstall page.
Uninstall this module on the Uninstall page.
It sounds repetitive... but people who know it already will just go there, and people who expect clicking on the checkbox to do something will know that uninstalling is the thing to do.
But I'm ok either way really.
Comment #9
yesct commentedI dont think we need a test for this... as long as it doesn't fail. I think this is an improvement.
No unrelated changes. rtbc
Comment #10
gábor hojtsyI agree with @YesCT I think we got rid of the enable/disable terminology (or at least wanted to) because that is not a possibility in Drupal 8 anymore and uninstall/install has much more consequences. As a foreign speaker not sure how to avoid the word repetition though.
Comment #11
shashikant_chauhan commentedUpdated the message.
Comment #12
quicksketchAlthough I think the previous text was better, #11's "Uninstall this module on the Uninstall page." works for me, even though it is repetitive. The exact text contents are of little importance as long as the concept is made apparent to the user.
Comment #13
xjmThanks @shashikant_chauhan and @quicksketch.
+1 for making this clearer somehow; I've seen people claiming modules can't be uninstalled at all in D8 because the checkbox is disabled and they don't find the tab.
I also think having the disabled checkbox at all is part of the problem, so the complete fix for this would be to redesign the page so it doesn't rely on checkboxes that you can never uncheck. We shouldn't block a small improvement like this on that, but in the longer term we should actually fix the problem rather than adding help text to work around it. #2035079: [PP-1] Figure out what to do with the install/uninstall modules page is the issue for that, so adding it here in case anyone else has the same thought.
Having this text at all is a definite improvement. I'd like to double-check the accessibility of the title attribute strategy, though, so tagging for accessibility review and setting NR pending that signoff.
Thanks!
Comment #14
andrewmacpherson commentedThanks for tagging this. Here's my accessibility review.
Summary:
Further details:
The following groups of users will NOT be able to perceive the tooltip content at all (not exhaustive - there are probably others I'm unaware of):
titleattribute, but only as a fallback where no associated is available. In this case, the checkbox does have an associated<label for>, so that will be used in preference to the title attribute.For example, ChromeVox announces: "Automated cron, tickbox, ticked, disabled". This is expected behaviour per the W3C HTML to Platform Accessibility APIs implementation guide.
<label for>will be used as the accessible name, and the title attribute will be ignored. Examples could include:Some groups of users will be able to perceive the tooltip content, but experience difficulty (again, not an exhaustive list):
<label>text, so there's a discrepancy between the target sizes which will check the box versus activate the tooltip.If we are committed to redesigning the modules page (#2035079: [PP-1] Figure out what to do with the install/uninstall modules page) then I might consider this an acceptable temporary usability improvement, on the road to a more inclusive design. That issue hasn't reached a consensus though, so I think it's premature to carry out this one.
Comment #15
andrewmacpherson commentedMost likely there are some ways we can improve this. Maybe we won't win them all, but if we can fix or mitigate problems for a number of affected user groups, then I'll be more warm about this. I'll have a think.
Comment #16
gábor hojtsy@andrewmacpherson yeah this seems to come down to "small improvements for some users" being better than "no improvement for any user at all". It seems like this does not regress at least. I agree if there are better ways to improve this for more users, that would be nice, but definitely would not condition this on a commitment to #2035079: [PP-1] Figure out what to do with the install/uninstall modules page.
Comment #19
martinhansen commentedSo, I've started using d8 after many many years of using d7, and encountered this issue the same as everyone has. I found this issue thread (and the related 2035079 one). However the last comment here is from almost a year ago now.
So in the meantime before this is addressed in core, here's a new d8 module you can try out: module_checkbox_clean
It doesn't really make any major changes, but it does at least help out a bit with the UI on the /admin/modules page.
Comment #28
danielvezaI think this still makes sense. As most people have pointed out already, this isn't an improvement for everyone but introduces no regressions.
Patch still applies to 10.1 with some fuzz. Added an updated patch for 10.1 and kicking off tests.
Comment #29
rinku jacob 13 commentedHi @DanielVeza, Applied your patch successfully and i got the solution. It was added a simple title attribute . Need RTBC+1.

Comment #30
smustgrave commentedCan we also add aria-label. May help expand the users it will help.
Also leaning towards the idea if a simple assertion could be added anywhere to verify the attributes are present.
Comment #31
gauravvvv commentedI have added "aria-label" to the checkbox, attached interdiff for same.
Assertion still needs to be added.
Comment #32
gauravvvv commentedComment #33
smustgrave commentedThanks look good! And so we don't break it wonder if we can a 2 line assertion somewhere for those values.
Comment #34
mgiffordWe really should be seeing this use of title as being a form of technical debt. It just isn't an inclusive approach. I am adding a link to the need to actually build a better solution for tooltips. The disabled text could go in the description field rather than the title. It isn't a WCAG failure though, just not a great pattern to repeat.
Comment #36
lauriiiThere's another issue trying to solve the same problem with different approach: #2890791: Improve usability of disabled checkboxes on module listing page.