Skip to content

Commit

Permalink
do not mount spinner unless we need it (#4139)
Browse files Browse the repository at this point in the history
* do not mount spinner unless we need it

* change files
  • Loading branch information
jijizz authored and aditima committed Mar 1, 2018
1 parent 47663d0 commit fdab0a0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "only mount spinner component when necessary",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "zhiliu@microsoft.com"
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,6 @@ $groupHeader-ease-in-back: cubic-bezier(0.600, -0.280, 0.735, 0.045);
}
}

.loading {
visibility: hidden;
opacity: 0;
transition: visibility $ms-animation-duration-3, opacity $ms-animation-duration-3;

&.loadingIsVisible {
visibility: visible;
opacity: 1;
}
}

.dropIcon {
position: absolute;
@include ms-left(-26px);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,9 @@ export class GroupHeader extends BaseComponent<IGroupDividerProps, IGroupHeaderS
<span className={ styles.headerCount }>({ group.count }{ group.hasMoreData && '+' })</span>
</div>

<div
className={ css(
'ms-GroupHeader-loading',
styles.loading,
isLoadingVisible && ('is-loading ' + styles.loadingIsVisible)
) }
>
{ isLoadingVisible && (
<Spinner label={ loadingText } />
</div>
) }

</FocusZone>
</div>
Expand Down

0 comments on commit fdab0a0

Please sign in to comment.