dadoagency / contentful-gatsby-components

0 stars 0 forks source link

Moved backgroundColor to parent of the styled text #41

Closed martink-rsa closed 3 years ago

martink-rsa commented 3 years ago

Background colours were not being applied correctly in some cases where there was additional styling e.g. the background colour would only be applied on the text that is emboldened.

Example:

if you don't absolutely in the picture should have the yellow background:

image

backgroundColor was moved to the main container so that its always applied to the text, however, I have not removed it from the child component that also has it passed as a style.