WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Tabset with X buttons to remove tabs

for

From: Jesse Hausler
Date: Jun 4, 2014 6:31PM


That's not a bad idea!

So I think we'll set tabindex="-1" on the non active tabs, and tabindex="0"
on the active tab. This way mouse users can still click the links and close
out the tabs without needing to open them first.

Thanks Jonathan.

Jesse



On Wed, Jun 4, 2014 at 7:08 PM, Jonathan Avila < <EMAIL REMOVED> >
wrote:

> > Here's the catch... we have little x buttons on each tab, so users can
> remove them from the page. The "remove tab" x's are currently anchors, but
> this causes a problem.
>
> I make only the currently active tab's close X focusable by removing the
> others from the focus order.
>
> Jonathan
> SSB BART Group
>
>