Fix .card-progress losing its styles when not a direct child of .card (#3188)

This commit is contained in:
Bartosz-Do authored and GitHub committed 2026-09-25 12:04:34 +02:00
1 parent c89bf8da57
commit 70b8372c61
2 files changed
+19 -2

No files matched your search

+14 -2
View File
@@ -302,9 +302,21 @@ Stacked card
}
// Card progress
// `.card >` outranks ui/_progress.scss's later `.progress { position: relative; }`.
.card > .card-progress {
.card-progress {
--card-progress-height: #{$card-progress-height};
height: var(--card-progress-height);
&:last-child {
@include border-radius(0 0 2px 2px);
}
&:first-child {
@include border-radius(2px 2px 0 0);
}
}
// `.card >` outranks the fallback above and ui/_progress.scss's later `.progress { position: relative; }`.
.card > .card-progress {
--card-progress-offset: calc(-1 * var(--card-border-width));
position: absolute;
inset: var(--card-progress-offset);