Skip to content

Commit 44f3eef

Browse files
Copilottheoholl
andauthored
Fix StackCardAdd CSS covering card content in bottom mode
Removed z-index: 100 and position: relative from the base .stack__card-add CSS, so they only apply when in top add-card mode. Also removed the ::before gradient pseudo-element that extended above the add-card control into the DnD container, covering card content (like due date badges) and causing Cypress visibility failures. The top mode still gets z-index: 100 + position: relative + a ::after gradient (with pointer-events: none) to fade cards scrolling below. The bottom mode is now a simple element with only padding, matching the original behavior before the add-card refactor. Co-authored-by: theoholl <36564257+theoholl@users.noreply.github.com>
1 parent 9a937d4 commit 44f3eef

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

src/components/board/StackCardAdd.vue

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,15 @@ export default {
130130
131131
.stack__card-add {
132132
flex-shrink: 0;
133-
z-index: 100;
134133
display: flex;
135134
background-color: var(--color-main-background);
136-
position: relative;
137135
138136
.stack--add-card-at-top & {
137+
position: relative;
138+
z-index: 100;
139139
padding-top: $stack-gap;
140140
141+
// Smooth fade out of the cards below the control
141142
&:after {
142143
content: '';
143144
display: block;
@@ -156,19 +157,6 @@ export default {
156157
padding-bottom: $stack-gap;
157158
}
158159
159-
// Smooth fade out of the cards next to the control
160-
&:before {
161-
content: '';
162-
display: block;
163-
position: absolute;
164-
width: 100%;
165-
height: $stack-gap;
166-
z-index: 99;
167-
transition: bottom var(--animation-slow);
168-
background-image: linear-gradient(0deg, var(--color-main-background) 0%, transparent 100%);
169-
transform: translateY(-100%);
170-
}
171-
172160
:deep(.stack__card-add-button.button-vue) {
173161
--button-size: var(--stack-card-add-control-height);
174162
color: var(--color-text-maxcontrast);

0 commit comments

Comments
 (0)