Skip to content
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

[Table] Add an ability to style a checkbox of table row #4121

Closed
Nek opened this issue Apr 29, 2016 · 8 comments
Closed

[Table] Add an ability to style a checkbox of table row #4121

Nek opened this issue Apr 29, 2016 · 8 comments
Labels
bug 🐛 Something doesn't work component: table This is the name of the generic UI component, not the React module!

Comments

@Nek
Copy link

Nek commented Apr 29, 2016

Problem Description

There is no way to add custom styling to a checkbox of a table row.

Versions

  • Material-UI: 0.15.0-beta.2
  • React: 15.0.1
  • Browser: doesn't matter
@mpontikes mpontikes mentioned this issue Aug 5, 2016
13 tasks
@andreyluiz
Copy link

As a workaround:

<TableRow className="row"></TableRow>
.row {
  td {
    background-color: white !important;
  }
}

@ralexand56
Copy link

Is there a workaround for setting the height of the checkbox column? That seems to be overriding everything else in the row and you can't set it.

@oliviertassinari oliviertassinari added the component: table This is the name of the generic UI component, not the React module! label May 16, 2017
@oliviertassinari oliviertassinari changed the title Add an ability to style a checkbox of table row [Table] Add an ability to style a checkbox of table row May 16, 2017
@andreyluiz
Copy link

Can't you use the same technique I wrote above?

@ralexand56
Copy link

Unless I'm missing something, unless I hide the checkbox, the height of the checkbox overrides any height I set on the row.

@ralexand56
Copy link

Actually, let me try that technique.

@ralexand56
Copy link

ralexand56 commented Jun 15, 2017

Yeah, no dice. I can set the style on each row column but since you don't manually add the checkbox column its not possible with it and it doesn't inherit the height from row and its set to 48px.

@ralexand56
Copy link

Does anyone know where that css style checkbox column style is stored in the module folder?

@oliviertassinari
Copy link
Member

We have been porting the component on the v1-beta branch. We reimplemented it from the ground-up. While we haven't tested it, I think that the issue is most likely fixed on that branch. The Checkbox is exposed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: table This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

4 participants