Skip to content

Commit

Permalink
feat(default-theme): parse html tags in product description (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucmus authored May 14, 2020
1 parent 5a1fac1 commit 8fed4b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/default-theme/components/SwProductDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
/>
</div>
<SwPluginSlot name="product-page-description">
<p class="product-details__description desktop-only">
{{ description }}
</p>
<p class="product-details__description desktop-only" v-html="description"/>
</SwPluginSlot>
<!-- <div class="product-details__action">
<button v-if="sizes.length > 0" class="sf-action">Size guide</button>
Expand Down
4 changes: 1 addition & 3 deletions packages/default-theme/components/SwProductTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<slot>
<SfTab title="Description">
<div>
<p>
{{ description }}
</p>
<p v-html="description" />
</div>
</SfTab>
<SfTab title="Properties">
Expand Down

0 comments on commit 8fed4b1

Please sign in to comment.