Add "aria-disabled" prop to truly disable OBW continue buttons (#34895)
* Add aria-disabled prop to truly disable OBW continue buttons * Add changelog
This commit is contained in:
parent
c46f4baa49
commit
4a39091961
|
@ -627,6 +627,7 @@ class BusinessDetails extends Component {
|
|||
this.persistProfileItems();
|
||||
} }
|
||||
disabled={ ! isValidForm }
|
||||
aria-disabled={ ! isValidForm }
|
||||
isBusy={ isInstallingActivating }
|
||||
>
|
||||
{ ! hasInstallActivateError
|
||||
|
|
|
@ -291,6 +291,9 @@ class Industry extends Component {
|
|||
disabled={
|
||||
! selected.length || isProfileItemsRequesting
|
||||
}
|
||||
aria-disabled={
|
||||
! selected.length || isProfileItemsRequesting
|
||||
}
|
||||
>
|
||||
{ __( 'Continue', 'woocommerce' ) }
|
||||
</Button>
|
||||
|
|
|
@ -286,6 +286,11 @@ export class ProductTypes extends Component {
|
|||
isProfileItemsRequesting ||
|
||||
isInstallingActivating
|
||||
}
|
||||
aria-disabled={
|
||||
! selected.length ||
|
||||
isProfileItemsRequesting ||
|
||||
isInstallingActivating
|
||||
}
|
||||
>
|
||||
{ __( 'Continue', 'woocommerce' ) }
|
||||
</Button>
|
||||
|
|
|
@ -128,6 +128,7 @@ you can purchase and install it later.
|
|||
data-wp-component="CardFooter"
|
||||
>
|
||||
<button
|
||||
aria-disabled="true"
|
||||
class="components-button is-primary"
|
||||
disabled=""
|
||||
type="button"
|
||||
|
@ -323,6 +324,7 @@ you can purchase and install it later.
|
|||
data-wp-component="CardFooter"
|
||||
>
|
||||
<button
|
||||
aria-disabled="true"
|
||||
class="components-button is-primary"
|
||||
disabled=""
|
||||
type="button"
|
||||
|
|
|
@ -376,6 +376,7 @@ export class StoreDetails extends Component {
|
|||
onClick={ handleSubmit }
|
||||
isBusy={ isBusy }
|
||||
disabled={ ! isValidForm || isBusy }
|
||||
aria-disabled={ ! isValidForm || isBusy }
|
||||
>
|
||||
{ __( 'Continue', 'woocommerce' ) }
|
||||
</Button>
|
||||
|
|
|
@ -288,6 +288,7 @@ Object {
|
|||
data-wp-component="CardFooter"
|
||||
>
|
||||
<button
|
||||
aria-disabled="true"
|
||||
class="components-button is-primary"
|
||||
disabled=""
|
||||
type="button"
|
||||
|
@ -601,6 +602,7 @@ Object {
|
|||
data-wp-component="CardFooter"
|
||||
>
|
||||
<button
|
||||
aria-disabled="true"
|
||||
class="components-button is-primary"
|
||||
disabled=""
|
||||
type="button"
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Fix obw validation issue to truly disable the continue buttons
|
Loading…
Reference in New Issue