From 57206300c591fa5f23c5d0cb9502df97b92e7bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20H=C3=BCbner?= Date: Wed, 27 Mar 2024 17:28:30 +0100 Subject: [PATCH 1/2] fix: Correct color for spinner background (#212) --- src/_rules/animations.js | 2 +- test/animations.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_rules/animations.js b/src/_rules/animations.js index a4ac882..b8cd18d 100644 --- a/src/_rules/animations.js +++ b/src/_rules/animations.js @@ -6,7 +6,7 @@ const inProgress = 'background-image:linear-gradient(135deg,rgba(0,0,0,.05) 25%, const keyFrames = '@keyframes animate-inprogress {0% {background-position: 0 0;}to {background-position: 60px 0;}}'; /*----SPINNER----*/ -const spinner = '--spinner-size: 24px;height: var(--spinner-size);width: var(--spinner-size);border-radius: 50%;border: calc(var(--spinner-size) / 8) solid rgba(var(--w-s-rgb-border-primary),.5);border-top-color: var(--w-s-color-border-primary);position: relative;animation: animate-spinner 0.75s infinite linear;'; +const spinner = '--spinner-size: 24px;height: var(--spinner-size);width: var(--spinner-size);border-radius: 50%;border: calc(var(--spinner-size) / 8) solid rgba(var(--w-s-rgb-border-primary-subtle),.5);border-top-color: var(--w-s-color-border-primary);position: relative;animation: animate-spinner 0.75s infinite linear;'; const spinnerPseudo = `content: ' ';height: calc(var(--spinner-size) / 8);width: calc(var(--spinner-size) / 8);border-radius: 50%;position: absolute;top: calc(var(--spinner-size) / 180);`; const spinnerBefore = 'left:0;'; const spinnerAfter = 'right:0;'; diff --git a/test/animations.js b/test/animations.js index e217dd2..041c3d0 100644 --- a/test/animations.js +++ b/test/animations.js @@ -16,6 +16,6 @@ test('animate spinner', async ({ uno }) => { const { css } = await uno.generate(classes); expect(css).toMatchInlineSnapshot(` "/* layer: default */ - .animate-spinner{--spinner-size: 24px;height: var(--spinner-size);width: var(--spinner-size);border-radius: 50%;border: calc(var(--spinner-size) / 8) solid rgba(var(--w-s-rgb-border-primary),.5);border-top-color: var(--w-s-color-border-primary);position: relative;animation: animate-spinner 0.75s infinite linear;}.animate-spinner::before,.animate-spinner::after{content: ' ';height: calc(var(--spinner-size) / 8);width: calc(var(--spinner-size) / 8);border-radius: 50%;position: absolute;top: calc(var(--spinner-size) / 180);}.animate-spinner::after{right:0;}.animate-spinner::before{left:0;}@keyframes animate-spinner {to{transform:rotate(359deg);}}" + .animate-spinner{--spinner-size: 24px;height: var(--spinner-size);width: var(--spinner-size);border-radius: 50%;border: calc(var(--spinner-size) / 8) solid rgba(var(--w-s-rgb-border-primary-subtle),.5);border-top-color: var(--w-s-color-border-primary);position: relative;animation: animate-spinner 0.75s infinite linear;}.animate-spinner::before,.animate-spinner::after{content: ' ';height: calc(var(--spinner-size) / 8);width: calc(var(--spinner-size) / 8);border-radius: 50%;position: absolute;top: calc(var(--spinner-size) / 180);}.animate-spinner::after{right:0;}.animate-spinner::before{left:0;}@keyframes animate-spinner {to{transform:rotate(359deg);}}" `); }); From 7db6aa8ff728e73589212a6a9a6a582769883467 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 27 Mar 2024 16:29:04 +0000 Subject: [PATCH 2/2] chore(release): 1.10.2-next.1 [skip ci] ## [1.10.2-next.1](https://github.com/warp-ds/drive/compare/v1.10.1...v1.10.2-next.1) (2024-03-27) ### Bug Fixes * Correct color for spinner background ([#212](https://github.com/warp-ds/drive/issues/212)) ([5720630](https://github.com/warp-ds/drive/commit/57206300c591fa5f23c5d0cb9502df97b92e7bdc)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 778f4c8..3ee53bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.10.2-next.1](https://github.com/warp-ds/drive/compare/v1.10.1...v1.10.2-next.1) (2024-03-27) + + +### Bug Fixes + +* Correct color for spinner background ([#212](https://github.com/warp-ds/drive/issues/212)) ([5720630](https://github.com/warp-ds/drive/commit/57206300c591fa5f23c5d0cb9502df97b92e7bdc)) + ## [1.10.1](https://github.com/warp-ds/drive/compare/v1.10.0...v1.10.1) (2024-03-25) diff --git a/package.json b/package.json index afc2e08..a2a081a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@warp-ds/uno", "repository": "git@github.com:warp-ds/drive.git", - "version": "1.10.1", + "version": "1.10.2-next.1", "type": "module", "exports": { ".": "./src/plugin.js",