Skip to content

Commit

Permalink
CIF-1965 - Show staged flag in productlist component (#118)
Browse files Browse the repository at this point in the history
* use productlist v2 component
* update css for consistent "staged" flag in product and productlist
  • Loading branch information
cjelger authored and mhaack committed Jun 9, 2021
1 parent 942e2ab commit 7a2ba22
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
jcr:description="Product List Component"
jcr:primaryType="cq:Component"
jcr:title="Product List"
sling:resourceSuperType="core/cif/components/commerce/productlist/v1/productlist"
sling:resourceSuperType="core/cif/components/commerce/productlist/v2/productlist"
componentGroup="Venia - Commerce"/>
1 change: 1 addition & 0 deletions ui.frontend/src/main/site/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ $venia-font: Muli, -apple-system, BlinkMacSystemFont, sans-serif;
$venia-grey: rgb(246, 246, 246);
$venia-grey-dark: rgb(209, 209, 209);
$venia-orange: rgb(241, 99, 33);
$venia-staged: rgb(249, 170, 128);
$venia-teal: rgb(0, 115, 120);
$venia-teal-alt: rgb(224, 240, 241);
$venia-teal-dark: rgb(0, 104, 108);
Expand Down
2 changes: 1 addition & 1 deletion ui.frontend/src/main/styles/commerce/_product.scss
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ tr:nth-child(even) {

.productFullDetail__staged {
grid-column: span 2;
background-color: #f0f0f0;
background-color: $venia-staged;
padding: 2px 5px;
}

Expand Down
8 changes: 8 additions & 0 deletions ui.frontend/src/main/styles/commerce/_productlist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@
padding: 0 0.5rem 0.5rem 0.5rem;
}

.category__staged, .item__staged {
background-color: $venia-staged;
padding: 5px 5px;
margin: 0 auto 5px;
text-align: center;
width: 150px;
}

.category__pagination {
position: -webkit-sticky;
position: sticky;
Expand Down

0 comments on commit 7a2ba22

Please sign in to comment.