Skip to content

Commit

Permalink
Spinner: Enforce no background. (#49695)
Browse files Browse the repository at this point in the history
* Spinner: Enforce no background.

* Include opacity.

* CHANGELOG

* Use `transparent` to reset the background

* Update snapshots

---------

Co-authored-by: Marco Ciampini <marco.ciampo@gmail.com>
  • Loading branch information
jasmussen and ciampo authored Apr 15, 2023
1 parent 6f96394 commit 9fd9dad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

- `DropZone`: Smooth animation ([#49517](https://github.com/WordPress/gutenberg/pull/49517)).
- `Navigator`: Add `skipFocus` property in `NavigateOptions`. ([#49350](https://github.com/WordPress/gutenberg/pull/49350)).
- `Spinner`: add explicit opacity and background styles ([#49695](https://github.com/WordPress/gutenberg/pull/49695)).

### Bug Fix

Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/spinner/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export const StyledSpinner = styled.svg`
position: relative;
color: ${ COLORS.ui.theme };
overflow: visible;
opacity: 1;
background-color: transparent;
`;

const commonPathProps = css`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@ exports[`PostPublishPanel should render the spinner if the post is being saved 1
position: relative;
color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
overflow: visible;
opacity: 1;
background-color: transparent;
}
.emotion-2 {
Expand Down

0 comments on commit 9fd9dad

Please sign in to comment.