Skip to content

Commit 627de3e

Browse files
committed
Fix btn--loading
1 parent 16bca3b commit 627de3e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## [Unreleased]
2+
- Fix btn--loading
23

34
## [1.0.5] - 2025-02-01
45
- Increase gap for header items

lib/generators/css_zero/add/templates/app/assets/stylesheets/button.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@
8383
}
8484

8585
[aria-busy] .btn--loading:disabled {
86-
> * { visibility: hidden; }
86+
position: relative;
8787

88-
&::after {
89-
filter: var(--btn-icon-color, var(--color-filter-text));
88+
> * {
89+
visibility: hidden;
9090
}
9191

9292
&::after {
@@ -95,6 +95,7 @@
9595
background-size: cover;
9696
block-size: var(--size-5);
9797
content: "";
98+
filter: var(--btn-icon-color, var(--color-filter-text));
9899
inline-size: var(--size-5);
99100
position: absolute;
100101
}

0 commit comments

Comments
 (0)