-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding className to List component. #6424
Comments
@Aristona I understand not being a fan of the inline styles, but it would be helpful to have a "Link to minimally-working code" like a codepen or similar. You can use typescript on a codepen, etc. The styles will work a little differently in the Also, you put "N/A" under versions. Can you let us know which versions you have? |
@m2mathew I thought I didn't have to specify versions because it is a feature request. Right now my terminal looks like this: and this is how it shows error on my text editor: Versions are:
Using Chrome latest version. I'm not sure if I should add a Codepen because it occurs whenever you add In my opinion, there should be standard attributes such as style and className on each UI component. What do you think? |
I agree. I'm getting a similar error with |
Hey @Aristona, I don't have any experience with Typescript. I started to use it and research this, but that is like learning another JavaScript! 😱 |
@toddmedema What typescript definitions are you using? This doesn't sound like a Material-UI problem. @Aristona |
Getting this error:
With On
|
@toddmedema You need to post your issue here then. (Looks like they have a huge backlog of issues and PRs though.) |
Description
Requesting className property for
List
component. I have to add a class name to the List component because I have predefined values in my Sass files like so:because this
List
should adapt to template changes. Also, I'm not a fan of inline styling in components.Images & references
N/A
Problem description
It is not possible to add
className
on aList
element without typescript errors.Link to minimally-working code that reproduces the issue
Versions
N/A
The text was updated successfully, but these errors were encountered: