NIHVIVO-556: Added accessibility (aria roles).

This commit is contained in:
mb863 2010-11-17 14:31:13 +00:00
parent e4a3c54034
commit 0db54244ec
2 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> <#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- This is a temporary file and will be removed once we have completed the transition to freemarker --> <#-- This is a temporary file and will be removed once we have completed the transition to freemarker -->
<footer> <footer role="contentinfo">
<#if copyright??> <#if copyright??>
<p class="copyright"><small>&copy;${copyright.year?c} <p class="copyright"><small>&copy;${copyright.year?c}
<#if copyright.url??> <#if copyright.url??>
@ -16,7 +16,7 @@
</p> </p>
</#if> </#if>
<nav> <nav role="navigation">
<ul id="footer-nav"> <ul id="footer-nav">
<li><a href="${urls.about}">About</a></li> <li><a href="${urls.about}">About</a></li>
<#if urls.contact??> <#if urls.contact??>

View file

@ -1,7 +1,7 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> <#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- This is a temporary file and will be removed once we have completed the transition to freemarker --> <#-- This is a temporary file and will be removed once we have completed the transition to freemarker -->
<header id="branding"> <header id="branding" role="banner">
<h1 class="vivo-logo"><a href="${urls.home}"><span class="displace">${siteName}</span></a></h1> <h1 class="vivo-logo"><a href="${urls.home}"><span class="displace">${siteName}</span></a></h1>
<!-- Since we are using a graphic text for the tagline, we won't render ${siteTagline} <!-- Since we are using a graphic text for the tagline, we won't render ${siteTagline}
@ -11,7 +11,7 @@
<#import "lib-list.ftl" as l> <#import "lib-list.ftl" as l>
<nav> <nav role="navigation">
<ul id="header-nav"> <ul id="header-nav">
<#if loginName??> <#if loginName??>
<li><span class="pictos-arrow-10">U</span> ${loginName}</li> <li><span class="pictos-arrow-10">U</span> ${loginName}</li>
@ -32,11 +32,11 @@
</ul> </ul>
</nav> </nav>
<section id="search"> <section id="search" role="region">
<fieldset> <fieldset>
<legend>Search form</legend> <legend>Search form</legend>
<form id="searchForm" action="${urls.search}" name="searchForm"> <form id="searchForm" action="${urls.search}" name="searchForm" role="search">
<#if showFlag1SearchField??> <#if showFlag1SearchField??>
<select id="search-form-modifier" name="flag1" class="form-item" > <select id="search-form-modifier" name="flag1" class="form-item" >
<option value="nofiltering" selected="selected">entire database (${loginName})</option> <option value="nofiltering" selected="selected">entire database (${loginName})</option>
@ -58,7 +58,7 @@
</section> </section>
</header> </header>
<nav> <nav role="navigation">
<ul id="main-nav"> <ul id="main-nav">
<#list tabMenu.items as item> <#list tabMenu.items as item>
<li><a href="${item.url}" <#if item.active> class="selected" </#if>>${item.linkText}</a></li> <li><a href="${item.url}" <#if item.active> class="selected" </#if>>${item.linkText}</a></li>