Skip to content

Commit 4060462

Browse files
fix(VCST-4388): vc-product-button goes beyond the vc-line-items variations-default (#2089)
## Description Before: <img width="1197" height="281" alt="image" src="https://github.com/user-attachments/assets/59b6485e-bb98-443b-8d9b-f6cf39fb2d1a" /> After: <img width="1163" height="288" alt="image" src="https://github.com/user-attachments/assets/e60606c7-c131-4da9-a84c-b12e616302e1" /> ## References ### Jira-link: https://virtocommerce.atlassian.net/browse/VCST-4388 ### Artifact URL: https://vc3prerelease.blob.core.windows.net/packages/vc-theme-b2b-vue-2.36.0-pr-2089-3879-38793a04.zip
1 parent f940209 commit 4060462

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

client-app/ui-kit/components/molecules/product-button/vc-product-button.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,17 @@ withDefaults(defineProps<IProps>(), {
119119
}
120120
121121
@at-root .vc-product-card {
122-
#{$self} {
122+
$wrapperSelector: "> .vc-product-card__wrapper #{$self}";
123+
124+
#{$wrapperSelector} {
123125
@apply mt-3;
124126
125127
grid-area: add-to-cart;
126128
}
127129
128130
&--view-mode {
129131
&--grid {
130-
#{$self} {
132+
#{$wrapperSelector} {
131133
@apply order-7 min-h-[3.375rem];
132134
}
133135
@@ -136,7 +138,7 @@ withDefaults(defineProps<IProps>(), {
136138
}
137139
}
138140
139-
&--list #{$self} {
141+
&--list #{$wrapperSelector} {
140142
@container (min-width: theme("containers.sm")) {
141143
@apply w-72;
142144
}

0 commit comments

Comments
 (0)