File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
packages/gallery/src/components Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,6 @@ export function NavigationArrows({
115
115
next,
116
116
directionIsLeft,
117
117
arrowsBaseClasses,
118
- tabIndex : utils . getTabIndex . bind ( utils ) ,
119
118
containerStyle,
120
119
prevContainerStyle,
121
120
nextContainerStyle,
@@ -168,7 +167,6 @@ export function ArrowButton({
168
167
directionIsLeft,
169
168
renderArrowSvg,
170
169
next,
171
- tabIndex,
172
170
arrowBoxStyle,
173
171
navArrowsContainerWidth,
174
172
navArrowsContainerHeight,
@@ -180,7 +178,7 @@ export function ArrowButton({
180
178
className : arrowsBaseClasses . join ( ' ' ) ,
181
179
onClick : ( ) => setTimeout ( nextAction , 0 ) ,
182
180
[ 'aria-label' ] : `${ isNext ? 'Next' : 'Previous' } Item` ,
183
- tabIndex : tabIndex ( isNext ? 'slideshowNext' : 'slideshowPrev' ) ,
181
+ tabIndex : '-1' ,
184
182
key : ! isNext ? 'nav-arrow-back' : 'nav-arrow-next' ,
185
183
[ 'data-hook' ] : ! isNext ? 'nav-arrow-back' : 'nav-arrow-next' ,
186
184
style : {
Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ class ItemView extends React.Component {
53
53
this . getItemAriaLabel = this . getItemAriaLabel . bind ( this ) ;
54
54
this . getItemContainerClass = this . getItemContainerClass . bind ( this ) ;
55
55
this . getItemWrapperClass = this . getItemWrapperClass . bind ( this ) ;
56
- this . getItemContainerTabIndex = this . getItemContainerTabIndex . bind ( this ) ;
57
56
this . isIconTag = this . isIconTag . bind ( this ) ;
58
57
this . onMouseEnter = this . onMouseEnter . bind ( this ) ;
59
58
this . onMouseLeave = this . onMouseLeave . bind ( this ) ;
@@ -864,15 +863,6 @@ class ItemView extends React.Component {
864
863
return classes . join ( ' ' ) ;
865
864
}
866
865
867
- getItemContainerTabIndex ( ) {
868
- const tabIndex = this . isHighlight ( )
869
- ? utils . getTabIndex ( 'currentThumbnail' )
870
- : this . props . activeIndex === this . props . idx
871
- ? utils . getTabIndex ( 'currentGalleryItem' )
872
- : - 1 ;
873
- return tabIndex ;
874
- }
875
-
876
866
//-----------------------------------------| REACT |--------------------------------------------//
877
867
878
868
componentDidMount ( ) {
@@ -969,7 +959,7 @@ class ItemView extends React.Component {
969
959
onMouseLeave = { this . onMouseLeave }
970
960
onFocus = { this . onFocus }
971
961
onBlur = { this . onBlur } // The onblur event is the opposite of the onfocus event.
972
- tabIndex = { this . getItemContainerTabIndex ( ) }
962
+ tabIndex = "-1"
973
963
aria-label = { this . getItemAriaLabel ( ) }
974
964
data-hash = { hash }
975
965
data-id = { photoId }
You can’t perform that action at this time.
0 commit comments