CMS Development

katepaulson
Miembro

Bullet point color is not changing with text

resolver

I'm a new Hubspot user and this question will probably seem simple to some, but the color of the bullet points within my landing pages are not changing as I change the color of the text that follows. The text after my bullet points are white, but the actual points will not change from gray to white, or any other color. Anyone know how to fix this? 

1 Soluciones aceptada
dennisedson
Solución
Equipo de producto de HubSpot
Equipo de producto de HubSpot

Bullet point color is not changing with text

resolver

setting the color of the li should change the color of the bullet. 

should be as simple as

li{
  color: #fff;
}

unless the text was wrapped in a span that had a separate style attached. 

like

<li><span style="color:green;">I am green. my bullet is not</span</li>

need a link to page to properly debug

Ver la solución en mensaje original publicado

5 Respuestas 5
squatchcreative
Colaborador

Bullet point color is not changing with text

resolver

It's important to note that using the Rich Text module, adding a color style to text does not add the CSS to the block level element, rather it wraps the text with a span tag.  


So this list here with red text:

  • List Item 1
  • List Item 2
  • List Item 3

Looks like this in the code:

<ul>
    <li><span style="color:red;">List Item 1</span></li>
    <li><span style="color:red;">List Item 2</span></li>
    <li><span style="color:red;">List Item 3</span></li>
</ul>

 

and that does no good for content editors.  The li::marker will not inherit the color because the styling is applied to the span within it.  Content editors should not be responsible for using CSS to modify this. 

0 Me gusta
valerajoey
Participante | Partner nivel Platinum
Participante | Partner nivel Platinum

Bullet point color is not changing with text

resolver

we can help you better if you can give us the link to the page, 
if you're familiar with CSS you can add this code

ul li::before { 
  color: inherit;
}

this also might affect other list items on your page just be aware of it. 

katepaulson
Miembro

Bullet point color is not changing with text

resolver
 
0 Me gusta
dennisedson
Solución
Equipo de producto de HubSpot
Equipo de producto de HubSpot

Bullet point color is not changing with text

resolver

setting the color of the li should change the color of the bullet. 

should be as simple as

li{
  color: #fff;
}

unless the text was wrapped in a span that had a separate style attached. 

like

<li><span style="color:green;">I am green. my bullet is not</span</li>

need a link to page to properly debug

Kevin-C
Experto reconocido | Partner
Experto reconocido | Partner

Bullet point color is not changing with text

resolver

Just to add some context to @valerajoey's solution. See here

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
0 Me gusta