From 83767aa197a1dfb379e43ff7369ef86f9c1e9d28 Mon Sep 17 00:00:00 2001 From: Srikanth Dhondi Date: Mon, 29 Oct 2012 15:18:38 +1300 Subject: [PATCH] bug 8712 - added labels to the "Search history" and "x" links in the top frame 1) Added labels to the above links to improve the accesibility. G131 of WAI guidelines: The objective of this technique is to ensure that the label for any interactive component within Web content makes the component's purpose clear. 2) Added a new class "off-left" to "opac.css" file to hide these labels from appearing on the page. --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 5 +++++ koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 647104e..ecf279f 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -2823,3 +2823,8 @@ body#opac-main #opacmainuserblockmobile { .header-inline { display: inline; } +.off-left { + position: absolute; + left: -999px; + width: 990px; +} diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc index 4e40fb7..f8a99d2 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc @@ -8,7 +8,7 @@ [% END %] [% IF ( ShowOpacRecentSearchLink ) %] -
  • Search history [x]
  • +
  • Search history [x]
  • [% END %] [% IF ( loggedinusername ) %]
  • Log Out
  • [% END %] -- 1.7.9.5