My group is working on software that is used by several public schools. The UI has to be Section 508 compliant (for students with disabilities, etc), which includes being able to navigate the site using only the keyboard. Currently, we're making sure (using only the keyboard) a user can effectively [TAB] to all controls. The issue we're facing is that the DockCommands generated are skipped when tabbing through the UI. We're creating the DockCommands programatically in the C# code like this:
var cmd = new DockCommand();
cmd.AutoPostBack = true;
cmd.Name = commandText;
cmd.Text = commandText;
cmd.CssClass = cssClass;
However, this seems to always create an anchor tag with an empty span tag nested inside. The span contains a background image. Because the anchor has no href attribute and the image is just a background of the span, the tab skips right over it.
Are we doing something wrong? Or is there a way to work around this?
Any help would be much appreciated. Thanks.
var cmd = new DockCommand();
cmd.AutoPostBack = true;
cmd.Name = commandText;
cmd.Text = commandText;
cmd.CssClass = cssClass;
However, this seems to always create an anchor tag with an empty span tag nested inside. The span contains a background image. Because the anchor has no href attribute and the image is just a background of the span, the tab skips right over it.
Are we doing something wrong? Or is there a way to work around this?
Any help would be much appreciated. Thanks.