Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DDA Compliance - Keyboard accessibilityDDA Compliance - Keyboard accessibility
Previous
 
Next
New Post
3/10/2009 12:35 PM
 

I am hoping you guys can help me with this.

I have several custom modules within my Portal that allow a user to personalise the module. To do this they can click on an Edit image and a panel is exposed with the various settings for that module.

One key requirement for these modules is that the Edit button is localisable as our portals are used in many different locations.

So I have coded the button as follows:

     <div ID="divEdit" style="display:inline-block; text-align:right;" runat=server >
        <span class="ButtonLeft" ></span><asp:Label ID="lblEdit" resourcekey="Edit" TabIndex=1 CssClass="ButtonCentre" runat=server></asp:Label><span class="ButtonRight" ></span>
    </div>

The CSS is as follows:

.ButtonLeft
{
    display:inline-block;
    width: 13px;
    background-image: url(images/ButtonLeft.gif);
    margin: 6px 0px 6px 0px;
    height:20px;
    cursor:pointer;
}

.ButtonCentre
{
    display:inline-block;
    background-image: url(images/ButtonCentre.gif);
    background-repeat:repeat-x ;
    margin:   6px 0px 6px 0px;
    height:20px;
    color: #AD0818;
    font-size: 0.8em;
    text-align: center;
    vertical-align: top;
    cursor:pointer;
}

.ButtonRight
{
    display:inline-block;
    width: 13px;
    background-image: url(images/ButtonRight.gif);
    margin:  6px 10px 6px 0px;
    height:20px;
    cursor:pointer;
}
 

 

However one of the requirements is that in order to meet level 2 DDA compliance these edit buttons must be accessible via the key board, i.e. the user can tab to the Edit button and then press <ENTER> to open the edit panel.

This is where I am struggling. I have attempted to use a TabIndex on the various controls above (div, span, label, etc) but this does not work. Even if it did, what would I set the TabIndex to as the use can move modules around the screen so I don't know in code what order the tabs should be in.

 

Does anyone have any suggestions as to how I can get keyboard tabbing to work?

 


Blue & White hooped blood runs through my veins!
 
New Post
3/10/2009 2:10 PM
 

Would it be possible to replace the Label with a HyperLink?


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
3/11/2009 6:35 AM
 

Brian Dukes wrote

Would it be possible to replace the Label with a HyperLink?

No unfortunately even using a Hyperlink doesn't seem to work, the "tabbing" seems to skip right over this button.

I have just used an asp:LinkButton at the moment and that appears to fix the tabbing issue.

However the text is then controlled by the portal.css for links so it's not perfect but it does do a job.

 

Thanks


Blue & White hooped blood runs through my veins!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DDA Compliance - Keyboard accessibilityDDA Compliance - Keyboard accessibility


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out