Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to change read-more color

I’m working on a reactjs portfolio with sass and i installed read-more package using npm i read-more-react and i found out that i can’t find a way to change the color of the text "Read more", can you help me to find a way around to fix my problem?

This is my code:

<div>
  <p className="p-text" style={{ marginTop: 10 }}>
    <ReadMoreReact
       text={work.description}
       min={30}
       ideal={100}
       max={150}
       readMoreText="Read more"
     />
  </p>
</div>

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The read more button has a class called read-more-button, just style this class.

For example.

.read-more-button {
    color: red;
}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading