Skip to content

Commit 00ae0df

Browse files
committed
fix props
1 parent eba70a8 commit 00ae0df

File tree

5 files changed

+17
-18
lines changed

5 files changed

+17
-18
lines changed

src/block/carousel/save.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ export const Save = props => {
7777
<div className="stk-block-carousel__content-wrapper">
7878
<div className={ contentClassNames }>
7979
<div
80+
className="stk-block-carousel__slider"
81+
role="list"
82+
data-autoplay={ attributes.autoplay ? ( attributes.autoplaySpeed || '4000' ) : undefined }
83+
data-label-slide-of={ attributes.ariaLabelPrev || 'Slide %%d of %%d' }
8084
{ ...applyFilters( 'stackable.carousel.save.slider-props', {
81-
className: 'stk-block-carousel__slider',
82-
role: 'list',
83-
'data-autoplay': attributes.autoplay ? ( attributes.autoplaySpeed || '4000' ) : undefined,
84-
'data-label-slide-of': attributes.ariaLabelPrev || 'Slide %%d of %%d',
8585
tabIndex: 0,
8686
}, props.version ) }
8787
>

src/block/horizontal-scroller/save.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export const Save = props => {
5555
{ attributes.generatedCss && <style>{ attributes.generatedCss }</style> }
5656
<CustomCSS.Content attributes={ attributes } />
5757
<div
58+
className={ contentClassNames }
5859
{ ...applyFilters( 'stackable.horizontal-scroller.save.scroller-props', {
59-
className: contentClassNames,
6060
tabIndex: 0,
6161
}, props.version ) }
6262
>

src/block/notification/save.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export const Save = props => {
8080
<button
8181
className="stk-block-notification__close-button"
8282
{ ...applyFilters( 'stackable.notification.save.close-button-props', {
83-
className: 'stk-block-notification__close-button',
8483
'aria-label': __( 'Close', i18n ),
8584
}, props.version ) }
8685
>

src/block/progress-bar/save.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ export const Save = props => {
7070
<CustomCSS.Content attributes={ attributes } />
7171
<div className={ containerClassNames }>
7272
<div
73+
className={ divClassNames }
74+
role="progressbar"
75+
aria-valuemin="0"
76+
aria-valuemax="100"
77+
aria-valuenow={ progressValue }
78+
aria-valuetext={ derivedAriaValue ? striptags( derivedAriaValue ) : undefined }
7379
{ ...applyFilters( 'stackable.progress-bar.div-props', {
74-
className: divClassNames,
75-
role: 'progressbar',
76-
'aria-valuemin': '0',
77-
'aria-valuemax': '100',
78-
'aria-valuenow': progressValue,
79-
'aria-valuetext': derivedAriaValue ? striptags( derivedAriaValue ) : undefined,
8080
'aria-label': derivedAriaValue ? striptags( derivedAriaValue ) : undefined,
8181
}, props.version ) }
8282
>

src/block/progress-circle/save.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ export const Save = props => {
6666
<CustomCSS.Content attributes={ attributes } />
6767
<div className={ containerClassNames }>
6868
<div
69+
className={ divClassNames }
70+
role="progressbar"
71+
aria-valuemin="0"
72+
aria-valuemax="100"
73+
aria-valuenow={ progressValue }
74+
aria-valuetext={ attributes.progressAriaValueText ? striptags( attributes.progressAriaValueText ) : undefined }
6975
{ ...applyFilters( 'stackable.progress-circle.div-props', {
70-
className: divClassNames,
71-
role: 'progressbar',
72-
'aria-valuemin': '0',
73-
'aria-valuemax': '100',
74-
'aria-valuenow': progressValue,
75-
'aria-valuetext': attributes.progressAriaValueText ? striptags( attributes.progressAriaValueText ) : undefined,
7676
'aria-label': attributes.progressAriaValueText ? striptags( attributes.progressAriaValueText ) : undefined,
7777
}, props.version ) }
7878
>

0 commit comments

Comments
 (0)