question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CSS Stylesheets & Classes

See original GitHub issue

The docs say there is extra setup needed to continue using stylesheets and classes, but doesn’t specify exactly what. And also under the usage section the css file link is broken; it seems like 3.0 component structure changed enough that I’m unable to use existing (old) stylesheets for rheostat.

I’m new to rheostat (thanks airbnb!) and am not using the CSS-in-JS on the project I’m working w/ but would still like to use this component. I’ve added import 'rheostat/initialize' and can get the component to work, but the base styles I generated from the other links just aren’t complete. I’ve inspected the output and could write my own styles for it, but it seems best if I work from the intended base css if at all possible.

Thanks for any other info or doc updates you can provide.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13

github_iconTop GitHub Comments

3reactions
juank11memphiscommented, Jan 18, 2019

I ended using pure css to style this as I didn’t want to introduce react-with-styles as a direct dependency on my project.

3reactions
tbassettocommented, Sep 11, 2018

I think I am in a situation more or less similar to @jeissler. I am currently using Rheostat 2, I just took the previous css file that you provided and modified it to match the design I needed.

I am now trying to upgrade to Rheostat 3 but it’s a bit painful:

  • You mention className as a valid prop but it throws an error if this prop is used.
  • In the “Usage” section there is a link to a css file that we are supposed to “Make sure to include” but it’s leads to a 404.

It would be great if you could provided an example on how to style the component using CSS only 😅. The only example so far is using aphrodite.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS .class Selector - W3Schools
The .class selector selects elements with a specific class attribute. To select elements with a specific class, write a period (.) character, followed...
Read more >
Class selectors - CSS: Cascading Style Sheets | MDN
The CSS class selector matches elements based on the contents of their class attribute. /* All elements with class="spacious" */ .spacious ...
Read more >
CSS Class Selectors: How to Use to Style an HTML Element
CSS syntax contains a selector, and a class is exactly that. It is needed to stylize HTML elements – including changing colors, fonts,...
Read more >
CSS Class Names: Apply Styles to Individual Survey Questions
More technically speaking, a class is a text string that is added to the question's outer-most div that you can then use to...
Read more >
Advanced CSS | custom stylesheet classes, ids, conditional ...
There's another implementation you've yet to learn; with classes and ids you will be able to set up custom ways of styling elements...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found