Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#9286 closed feature (notabug)

The reference for "activate focused tab after a short delay"?

Reported by: Ian Y. Owned by:
Priority: minor Milestone: none
Component: ui.tabs Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:

Description

On Tabs' documentation page, it mentions "Activate focused tab after a short delay."

However, W3C's definition for Tab Panel behavior doesn't address that there need to be "a short delay".

Could you please advise the consideration that jQuery UI decided to implement that?

Change History (10)

comment:1 Changed 8 years ago by Scott González

Resolution: notabug
Status: newclosed

comment:2 Changed 8 years ago by Ian Y.

Thanks. Please consider adding an option for canceling the delay.

Sometimes users would want to quick glance contents of all panels in order to search for something. They might not want to wait for 0.5 second at each panel.

comment:3 Changed 8 years ago by Scott González

Users can already do this by pressing SPACE. Please see the keyboard interaction section of http://api.jqueryui.com/tabs/

comment:4 in reply to:  3 Changed 8 years ago by Ian Y.

Replying to scott.gonzalez:

Users can already do this by pressing SPACE. Please see the keyboard interaction section of http://api.jqueryui.com/tabs/


But that need more key pressings thus it become inconvenient.

comment:5 Changed 8 years ago by Scott González

Surely you as the developer cannot predict whether all of your users will want to remove the delay. You can modify the delay if you want, but we're not encouraging it.

comment:6 in reply to:  5 Changed 8 years ago by Ian Y.

Replying to scott.gonzalez:

Surely you as the developer cannot predict whether all of your users will want to remove the delay. You can modify the delay if you want, but we're not encouraging it.

Yes. And what's your concern of not encouraging it?

Version 2, edited 8 years ago by Ian Y. (previous) (next) (diff)

comment:7 Changed 8 years ago by Scott González

Read the comments in the aforementioned pull request. There's even a discussion going on right now about whether ARIA should be changed in terms of when activation occurs.

comment:8 in reply to:  7 Changed 8 years ago by Ian Y.

Replying to scott.gonzalez:

Read the comments in the aforementioned pull request. There's even a discussion going on right now about whether ARIA should be changed in terms of when activation occurs.


I saw you said: "The downside is that you cannot navigate across ajax tabs using the keyboard without activating all tabs as you navigate."

But isn't ajax tabs rarely used? As far as I can remember, I never see people use that. Maybe there's a better approach so the delay doesn't need to be implemented on most cases in which delay is needless.

Last edited 8 years ago by Ian Y. (previous) (diff)

comment:9 Changed 8 years ago by Scott González

Ajax tabs are quite common. Conditionally using the delay is worse than always using the delay since it creates inconsistencies which cause confusion.

comment:10 Changed 8 years ago by Ian Y.

Okay. Thanks.

Note: See TracTickets for help on using tickets.