Skip to content

Commit 9fd9dad

Browse files
jasmussenciampo
andauthored
Spinner: Enforce no background. (#49695)
* Spinner: Enforce no background. * Include opacity. * CHANGELOG * Use `transparent` to reset the background * Update snapshots --------- Co-authored-by: Marco Ciampini <marco.ciampo@gmail.com>
1 parent 6f96394 commit 9fd9dad

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

packages/components/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

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

2425
### Bug Fix
2526

packages/components/src/spinner/styles.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ export const StyledSpinner = styled.svg`
2626
position: relative;
2727
color: ${ COLORS.ui.theme };
2828
overflow: visible;
29+
opacity: 1;
30+
background-color: transparent;
2931
`;
3032

3133
const commonPathProps = css`

packages/editor/src/components/post-publish-panel/test/__snapshots__/index.js.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,8 @@ exports[`PostPublishPanel should render the spinner if the post is being saved 1
595595
position: relative;
596596
color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
597597
overflow: visible;
598+
opacity: 1;
599+
background-color: transparent;
598600
}
599601
600602
.emotion-2 {

0 commit comments

Comments
 (0)