Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Avoid extra is-loading classname
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed May 27, 2021
1 parent c70b599 commit 6378390
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions assets/js/base/components/loading-mask/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,15 @@ const LoadingMask = ( {
} ) => {
return (
<div
className={ classNames(
className,
'wc-block-components-loading-mask',
{
'is-loading': isLoading,
}
) }
className={ classNames( className, {
'wc-block-components-loading-mask': isLoading,
} ) }
>
{ isLoading && showSpinner && <Spinner /> }
<div
className="wc-block-components-loading-mask__children"
className={ classNames( {
'wc-block-components-loading-mask__children': isLoading,
} ) }
aria-hidden={ isLoading }
>
{ children }
Expand Down
2 changes: 1 addition & 1 deletion assets/js/base/components/loading-mask/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.wc-block-components-loading-mask.is-loading {
.wc-block-components-loading-mask {
position: relative;
min-height: 18px + $gap;
pointer-events: none;
Expand Down

0 comments on commit 6378390

Please sign in to comment.