Skip to content

Commit 3f50faa

Browse files
committed
updated save.js
1 parent 00ae0df commit 3f50faa

File tree

5 files changed

+10
-15
lines changed

5 files changed

+10
-15
lines changed

src/block/carousel/save.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ export const Save = props => {
8181
role="list"
8282
data-autoplay={ attributes.autoplay ? ( attributes.autoplaySpeed || '4000' ) : undefined }
8383
data-label-slide-of={ attributes.ariaLabelPrev || 'Slide %%d of %%d' }
84-
{ ...applyFilters( 'stackable.carousel.save.slider-props', {
85-
tabIndex: 0,
86-
}, props.version ) }
84+
tabIndex={ 0 }
85+
{ ...applyFilters( 'stackable.carousel.save.slider-props', {}, props.version ) }
8786
>
8887
<InnerBlocks.Content />
8988
</div>

src/block/horizontal-scroller/save.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ export const Save = props => {
5656
<CustomCSS.Content attributes={ attributes } />
5757
<div
5858
className={ contentClassNames }
59-
{ ...applyFilters( 'stackable.horizontal-scroller.save.scroller-props', {
60-
tabIndex: 0,
61-
}, props.version ) }
59+
tabIndex={ 0 }
60+
{ ...applyFilters( 'stackable.horizontal-scroller.save.scroller-props', {}, props.version ) }
6261
>
6362
<InnerBlocks.Content />
6463
</div>

src/block/notification/save.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,8 @@ export const Save = props => {
7979
{ attributes.isDismissible &&
8080
<button
8181
className="stk-block-notification__close-button"
82-
{ ...applyFilters( 'stackable.notification.save.close-button-props', {
83-
'aria-label': __( 'Close', i18n ),
84-
}, props.version ) }
82+
aria-label={ __( 'Close', i18n ) }
83+
{ ...applyFilters( 'stackable.notification.save.close-button-props', {}, props.version ) }
8584
>
8685
<SVGCloseIcon
8786
width={ attributes.dismissibleSize || 16 }

src/block/progress-bar/save.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ export const Save = props => {
7676
aria-valuemax="100"
7777
aria-valuenow={ progressValue }
7878
aria-valuetext={ derivedAriaValue ? striptags( derivedAriaValue ) : undefined }
79-
{ ...applyFilters( 'stackable.progress-bar.div-props', {
80-
'aria-label': derivedAriaValue ? striptags( derivedAriaValue ) : undefined,
81-
}, props.version ) }
79+
aria-label={ derivedAriaValue ? striptags( derivedAriaValue ) : undefined }
80+
{ ...applyFilters( 'stackable.progress-bar.div-props', {}, props.version ) }
8281
>
8382
<div className={ barClassNames }>
8483
{ attributes.showText && (

src/block/progress-circle/save.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ export const Save = props => {
7272
aria-valuemax="100"
7373
aria-valuenow={ progressValue }
7474
aria-valuetext={ attributes.progressAriaValueText ? striptags( attributes.progressAriaValueText ) : undefined }
75-
{ ...applyFilters( 'stackable.progress-circle.div-props', {
76-
'aria-label': attributes.progressAriaValueText ? striptags( attributes.progressAriaValueText ) : undefined,
77-
}, props.version ) }
75+
aria-label={ attributes.progressAriaValueText ? striptags( attributes.progressAriaValueText ) : undefined }
76+
{ ...applyFilters( 'stackable.progress-circle.div-props', {}, props.version ) }
7877
>
7978
<svg>
8079
{ attributes.progressColorType === 'gradient' && (

0 commit comments

Comments
 (0)