fix #2290 Added an accessibility feature for tab directive