dadoagency / contentful-gatsby-components

0 stars 0 forks source link

PLB: Fixes the button style override and image positioning #38

Closed martink-rsa closed 4 years ago

martink-rsa commented 4 years ago
  1. Removed the styling override that takes place in the Advertorial's own stylesheet.

The styling would override the styling that came from the PLB (Product Link Button). The PLB should always take preference.

A better solution in the future would be to set a Theme colour content model for each template, and then this theme would set the colours. There would then be no need to style the button in a PLB and overriding would be more controlled through the theme colours.

  1. Adjusted the image in the PLB as well as slightly changed the elements and structure.

The image is now in its own container to the right.

  1. PLB style !important overrides

I've added !important to all of the CSS values for the PLB for good measure so that the event does not arise again where it is being overridden.