Overriding a Components Styles
Give a fresh new look to any component – replace the default styles with your own.
to override:
node_modules/@scandipwa/scandipwa/
src/component/ProductAttributes/ProductAttributes.style.scss
create:
src/component/ProductAttributes/ProductAttributes.style.scssscandipwa override component ProductAttributes
? Choose things to extend in ProductAttributes.component.js
? What would you like to do with styles? Override
? Choose things to extend in ProductAttributes.container.js
NOTE!
The following files have been created:
src/component/ProductAttributes/ProductAttributes.style.scss:root {
--product-information-background: var(--secondary-base-color);
}
.ProductAttributes {
&-Wrapper {
padding: 0;
@include desktop {
padding: 2rem;
}
}
&-ExpandableContentButton {
@include after-mobile {
display: none;
}
}
&-ExpandableContentContent {
&_isContentExpanded {
@include mobile {
padding: 0 1.4rem;
}
}
}
&-Description,
&-Attributes {
width: 100%;
}
&-Attributes {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1em;
}
&-ValueLabel,
&-AttributeLabel {
text-overflow: ellipsis;
font-family: var(--font-staatliches);
font-size: 20px;
line-height: 1;
}
&-ValueLabel {
font-weight: 700;
@include mobile {
padding-left: .7rem;
margin-bottom: 1.4rem;
}
}
&-AttributeLabel {
text-align: right;
color: var(--secondary-dark-color)
}
}
Last updated