It's okay to reuse the title text for 'Yes', but not for 'No'. Filed against core as well, since this is something jquery.confirmable could address in a simple, general way.
Description
Details
Related Objects
- Mentioned In
- T111735: Non-breaking spaces break page layout when confirming thanks in diff view
rMEXTe9bca41d468d: Updated mediawiki/extensions Project: mediawiki/extensions/Thanks…
rETHAb7cefb78ae98: Add custom title text for Yes and No Thank confirmations
rMW1147690eb18d: Improve title text in jquery.confirmable
Event Timeline
You can pass a buttonCallback function that would remove the title attribute from the "No" button. No changes to jquery.confirmable should be necessary.
Good point. It's not strictly required.
But just as there is general functionality for the Yes and No visible text, I think there should also be for the Yes and No title text.
This problem probably applies any time the main link uses a title attribute. Even when it doesn't, one may be useful (both for the main link and for Yes/No).
I'm inclined to just make it so that jquery.confirmable doesn't include title text for the default yes / no buttons, since I can't think of a scenario in which it'd be desirable for the "no" action to inherit the title text. This shouldn't result in accessibility issues, given the button label is descriptive.
Change 190742 had a related patch set uploaded (by Wctaiwan):
Make jquery.confirmable not clone title text
In the future, you should check with the assignee before starting a bug that is already assigned.
Luckily, in this case, I did not start coding yet, though I did think about it.
Sorry, I just noticed I was CC'd, figured it was a quick one line patch and didn't see that it was assigned. I'll be more careful in the future.
Change 191242 had a related patch set uploaded (by Mattflaschen):
Add custom title text for Yes and No Thank confirmations
Change 191242 merged by jenkins-bot:
Add custom title text for Yes and No Thank confirmations
@DannyH This is not part of the sprint, but you can test now on Beta Labs if you want (when it's back up, that is).