Problem/Motivation

In #2999549: Allow button tag in LinkGenerator for better accessibility support for semantically-correct buttons was added to LinkGenerator for better accessibility, but this is not yet documented/described in the LinkWidget's help text.

Related: https://www.drupal.org/node/3053689

Proposed resolution

Add help text indicating that button is an option as a keyboard-accessible version of nolink.

User interface changes

Adds information about route: to help text (description) of fields using LinkWidget (e.g. Menu links).

Screenshot (before)

Screenshot (after)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

azslay created an issue. See original summary.

azslay’s picture

Patch that adds help text to the menu link field, indicating that button is a keyboard accessible option.

azslay’s picture

Assigned: azslay » Unassigned
Status: Active » Needs review
joegraduate’s picture

Patch in #2 looks good to me. Having the button feature/functionality better documented for menu links (and more discoverable for site builders and content editors) would be a great improvement IMHO.

joegraduate’s picture

Issue summary: View changes
FileSize
112.7 KB
115.07 KB
joegraduate’s picture

joegraduate’s picture

Issue tags: -Bug Smash Initiative
joegraduate’s picture

Category: Feature request » Bug report
Issue tags: +Bug Smash Initiative
Shoshana Mayden’s picture

This looks good to me. Was able to install the patch and see the same help text as the screen shot. The help text is useful for creating a keyboard-accessible version of nolink.

hedrickbt’s picture

Issue summary: View changes

I was able to apply the patch cleanly and see the changes indicated by the screenshots. I also verified I could create a route: menu item and see a button with "hover help" by adding the menu to a block in the footer.

Moving the ticket to Reviewed & tested by the community.

hedrickbt’s picture

Status: Needs review » Reviewed & tested by the community

  • catch committed 6752b8d on 9.1.x
    Issue #3153394 by azslay, joegraduate, hedrickbt, Shoshana Mayden:...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed 6752b8d and pushed to 9.1.x. Thanks!

joegraduate’s picture

Any chance this could also get committed to 9.0.x and 8.9.x since it's really just a documentation change? The actual change to LinkGenerator that this change documents was made in 8.8.x.

catch’s picture

It's a string change, which we don't normally backport to patch releases unless the string is actively misleading - since doing so breaks translations until they're updated.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.