Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(default-theme): remove duplicated product description #882

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions packages/default-theme/components/SwProductDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
/>
</div>
<SwPluginSlot name="product-page-description" :slotContext="product">
<p
class="product-details__description desktop-only"
v-html="description"
/>
<p class="product-details__description" v-html="description" />
</SwPluginSlot>
<!-- <div class="product-details__action">
<button v-if="sizes.length > 0" class="sf-action">Size guide</button>
Expand Down Expand Up @@ -64,7 +61,6 @@
</div>
</div>
<SwProductTabs
:description="description"
:properties="properties"
:reviews="reviews"
:manufacturer="product.manufacturer"
Expand Down Expand Up @@ -256,7 +252,7 @@ export default {
margin-bottom: var(--spacer-base);
}
&__description {
margin: var(--spacer-xl) 0 calc(var(--spacer-base) * 3) 0;
margin: var(--spacer-xl) 0;
font-family: var(--font-family-secondary);
font-size: var(--font-sm);
}
Expand Down
9 changes: 0 additions & 9 deletions packages/default-theme/components/SwProductTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
<div class="sw-product-tabs">
<SfTabs class="product-details__tabs" :open-tab="openTab">
<slot>
<SfTab title="Description">
<div>
<p v-html="description" />
</div>
</SfTab>
<SfTab title="Properties">
<div class="product-details__properties">
<SfProperty
Expand Down Expand Up @@ -66,10 +61,6 @@ export default {
type: Array,
default: () => [],
},
description: {
type: String,
default: "",
},
manufacturer: {
type: Object,
default: () => ({}),
Expand Down