Skip to content

Commit

Permalink
Edit Site: Make loading spinner colors consistent (WordPress#51857)
Browse files Browse the repository at this point in the history
* Edit Site: Make loading spinner colors consistent

* Reduce opacity of spinner track
  • Loading branch information
tyxla authored and sethrubenstein committed Jul 13, 2023
1 parent b93b1bf commit ffa5b96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
12 changes: 1 addition & 11 deletions packages/edit-site/src/components/canvas-spinner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,11 @@
* WordPress dependencies
*/
import { Spinner } from '@wordpress/components';
import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';

/**
* Internal dependencies
*/
import { unlock } from '../../lock-unlock';

const { useGlobalStyle } = unlock( blockEditorPrivateApis );

export default function CanvasSpinner() {
const [ textColor ] = useGlobalStyle( 'color.text' );

return (
<div className="edit-site-canvas-spinner">
<Spinner style={ { color: textColor } } />
<Spinner />
</div>
);
}
4 changes: 4 additions & 0 deletions packages/edit-site/src/components/canvas-spinner/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
display: flex;
align-items: center;
justify-content: center;

circle {
stroke: rgba($black, 0.3);
}
}

0 comments on commit ffa5b96

Please sign in to comment.