@n1kname/components 0.32.0 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Button.astro +2 -1
package/package.json
CHANGED
package/src/Button.astro
CHANGED
|
@@ -51,7 +51,6 @@ const attrs = href ? { href } : { type, disabled, 'aria-pressed': selected === u
|
|
|
51
51
|
--spot: rgb(255 255 255 / 0.32);
|
|
52
52
|
position: relative;
|
|
53
53
|
isolation: isolate;
|
|
54
|
-
overflow: hidden;
|
|
55
54
|
display: inline-flex;
|
|
56
55
|
align-items: center;
|
|
57
56
|
justify-content: center;
|
|
@@ -80,6 +79,8 @@ const attrs = href ? { href } : { type, disabled, 'aria-pressed': selected === u
|
|
|
80
79
|
position: absolute;
|
|
81
80
|
inset: 0;
|
|
82
81
|
z-index: -1;
|
|
82
|
+
/* Rounded with the button instead of clipped by it: overflow: hidden would let a flex row squeeze the button below its label. */
|
|
83
|
+
border-radius: inherit;
|
|
83
84
|
opacity: 0;
|
|
84
85
|
background: radial-gradient(120px circle at var(--x) var(--y), var(--spot), transparent 60%);
|
|
85
86
|
transition: opacity 200ms var(--ease-out);
|