Panel Loading: spin clockwise, not counter clockwise (#25998)

* spin clockwise

* spin clockwise
pull/26002/head
Ryan McKinley 5 years ago committed by GitHub
parent 5789f80e14
commit 90a5a85eb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/features/dashboard/dashgrid/PanelHeader/PanelHeader.tsx
  2. 10
      public/sass/mixins/_animations.scss

@ -95,7 +95,7 @@ export class PanelHeader extends Component<Props, State> {
return ( return (
<div className="panel-loading" onClick={this.onCancelQuery}> <div className="panel-loading" onClick={this.onCancelQuery}>
<Tooltip content="Cancel query"> <Tooltip content="Cancel query">
<Icon className="panel-loading__spinner spin-counter-clock" name="sync" /> <Icon className="panel-loading__spinner spin-clockwise" name="sync" />
</Tooltip> </Tooltip>
</div> </div>
); );

@ -35,15 +35,15 @@
} }
} }
@keyframes spin-counter-clock { @keyframes spin-clockwise {
0% { 0% {
transform: rotate(359deg); transform: rotate(0deg) scaleX(-1); // scaleX flips the `sync` icon so arrows point the correct way
} }
100% { 100% {
transform: rotate(0deg); transform: rotate(359deg) scaleX(-1);
} }
} }
.spin-counter-clock { .spin-clockwise {
animation: spin-counter-clock 3s infinite linear; animation: spin-clockwise 3s infinite linear;
} }

Loading…
Cancel
Save