Material-ui: [Skeleton] Invisible against a dark background

Created on 3 Mar 2020  路  3Comments  路  Source: mui-org/material-ui

  • [x ] I have searched the issues of this repository and believe that this is not a duplicate.

Summary 馃挕

The Skeleton component only supports one rendering colour, and if placed over a dark background is invisible.

Motivation 馃敠

I am using a text variant Skeleton on a dark grey background, but it can't be viewed. It would be nice if it supported a light variant.

I'm not sure if this is best done through a dark/light toggle, or perhaps through the color property? In my use case it is a child of an AppBar so could perhaps support color="inherit" to
know that I'm using a dark AppBar as other child components do.

Skeleton

Most helpful comment

I don't think using a Mui Component in a dark theme is a niche use case. I am currently having the same issue.

All 3 comments

@mattmcdonald-uk I would recommend customizing the CSS in userland in such a case.

OK - perhaps this is a fairly niche use case.

I don't think using a Mui Component in a dark theme is a niche use case. I am currently having the same issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sys13 picture sys13  路  3Comments

chris-hinds picture chris-hinds  路  3Comments

revskill10 picture revskill10  路  3Comments

finaiized picture finaiized  路  3Comments

ericraffin picture ericraffin  路  3Comments