File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11<section
22 class =" ui5-carousel-root ui5-carousel-background-{{ _backgroundDesign }} "
33 tabindex =" 0"
4- role =" listbox"
4+ role =" list"
5+ aria-roledescription ={{ _roleDescription }}
56 aria-label =" {{ ariaLabelTxt }} "
67 aria-activedescendant =" {{ ariaActiveDescendant }} "
78 @focusin =" {{ _onfocusin }} "
1516 <div id =" {{ id }} "
1617 class =" ui5-carousel-item {{ classes }} "
1718 style =" {{ styles }} "
18- role =" option "
19+ role =" listitem "
1920 aria-posinset =" {{ posinset }} "
2021 aria-setsize =" {{ setsize }} "
2122 part =" item"
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import {
2828 CAROUSEL_DOT_TEXT ,
2929 CAROUSEL_PREVIOUS_ARROW_TEXT ,
3030 CAROUSEL_NEXT_ARROW_TEXT ,
31+ CAROUSEL_ARIA_ROLE_DESCRIPTION ,
3132} from "./generated/i18n/i18n-defaults.js" ;
3233import CarouselArrowsPlacement from "./types/CarouselArrowsPlacement.js" ;
3334import CarouselPageIndicatorStyle from "./types/CarouselPageIndicatorStyle.js" ;
@@ -696,6 +697,10 @@ class Carousel extends UI5Element {
696697 return getEffectiveAriaLabelText ( this ) ;
697698 }
698699
700+ get _roleDescription ( ) {
701+ return Carousel . i18nBundle . getText ( CAROUSEL_ARIA_ROLE_DESCRIPTION ) ;
702+ }
703+
699704 get nextPageText ( ) {
700705 return Carousel . i18nBundle . getText ( CAROUSEL_NEXT_ARROW_TEXT ) ;
701706 }
Original file line number Diff line number Diff line change @@ -100,6 +100,9 @@ CAROUSEL_PREVIOUS_ARROW_TEXT=Previous Page
100100# Carousel Next Page text
101101CAROUSEL_NEXT_ARROW_TEXT =Next Page
102102
103+ # XACT: ARIA announcement for the attribute 'aria-roledescription' of the Carousel component
104+ CAROUSEL_ARIA_ROLE_DESCRIPTION =Carousel
105+
103106# XFLD: Label of the container holding the colors
104107COLORPALETTE_CONTAINER_LABEL =Color palette - Predefined colors
105108
You can’t perform that action at this time.
0 commit comments