Skip to content

Commit 57f7199

Browse files
authored
fix: Add optional aria orientation setting to nav tabs (#30)
1 parent f0b5b3b commit 57f7199

File tree

1 file changed

+5
-0
lines changed
  • gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui

1 file changed

+5
-0
lines changed

gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/NavTabs.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* #L%
2121
*/
2222

23+
import com.google.gwt.aria.client.OrientationValue;
2324
import com.google.gwt.aria.client.Roles;
2425
import org.gwtbootstrap3.client.ui.constants.Styles;
2526

@@ -35,4 +36,8 @@ public NavTabs() {
3536
getElement().setAttribute("tabindex", "-1");
3637
Roles.getTablistRole().set(getElement());
3738
}
39+
40+
public void setAriaOrientation(OrientationValue orientation) {
41+
Roles.getScrollbarRole().setAriaOrientationProperty(getElement(), orientation);
42+
}
3843
}

0 commit comments

Comments
 (0)