Bug 24703

Summary: Show accesskeys with CSS instead of hardcoding them in the button text
Product: Koha Reporter: paxed <pasi.kallinen>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description paxed 2020-02-21 11:18:04 UTC
Currently the accesskeys are hardcoded into the button texts, like so:

<button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, close (Y)</button>

This is a problem eg. when translating the texts.

A more elegant solution would be to use CSS to show the actual access key value, such as

button[accesskey]:after {
 margin-left: 0.5em;
 content: "(" attr(accesskey) ")";
}