Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

[Blockifying Single Product Template]: Investigate how to apply WC Core styles to product template #8314

Closed
Tracked by #8054
kmanijak opened this issue Jan 27, 2023 · 0 comments · Fixed by #8364
Closed
Tracked by #8054
Assignees
Labels
category: extensibility Work involving adding or updating extensibility. Useful to combine with other scopes impacted. focus: template Related to API powering block template functionality in the Site Editor type: task The issue is an internally driven task (e.g. from another A8c team).

Comments

@kmanijak
Copy link
Contributor

Description

The Single Product Page has a main div that wraps all the elements, which has multiple classes. The style of the elements inside the wrapper is applied via CSS with the selector .product. For example, for the the Product Gallery element, the style is applied via this CSS rules:

woocommerce div.product div.woocommerce-product-gallery

This means that all the elements should have, as a parent, a div with the product class. With the div without the product class the page is broken.

Goal

Investigate possibility of handling that with goals in mind:

  • keep the current styling
  • don't break the extensibility (extensions might be relying on the current DOM structure)

Ref: per0F9-fk-p2

@kmanijak kmanijak added category: extensibility Work involving adding or updating extensibility. Useful to combine with other scopes impacted. type: task The issue is an internally driven task (e.g. from another A8c team). focus: template Related to API powering block template functionality in the Site Editor labels Jan 27, 2023
@kmanijak kmanijak self-assigned this Jan 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
category: extensibility Work involving adding or updating extensibility. Useful to combine with other scopes impacted. focus: template Related to API powering block template functionality in the Site Editor type: task The issue is an internally driven task (e.g. from another A8c team).
Projects
None yet
1 participant