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.

[Select] Unable to override styles with variants

See original GitHub issue
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

I’m unable to provide style overrides for the MuiSelect component.

Expected Behavior 🤔

I’m able to provide style overrides for the MuiSelect component.

Steps to Reproduce 🕹

The following codebox shows an example. I can change the styles for the Button, but not for the select. I’ve tried several combos of styles, but nothing seems to be injected:

https://codesandbox.io/s/material-ui-themes-forked-msl7f?file=/src/index.js

Context 🔦

Configuring the theme

Your Environment 🌎

System: OS: Linux 5.11 Ubuntu 21.04 (Hirsute Hippo) Binaries: Node: 12.14.0 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.4 - /usr/local/bin/npm Browsers: Chrome: Not Found Firefox: 92.0 npmPackages: @emotion/react: ^11.4.1 => 11.4.1 @emotion/styled: ^11.3.0 => 11.3.0 @mui/core: 5.0.0-alpha.49 @mui/icons-material: ^5.0.0 => 5.0.1 @mui/material: ^5.0.2 => 5.0.2 @mui/private-theming: 5.0.1 @mui/styled-engine: 5.0.1 @mui/system: 5.0.2 @mui/types: 7.0.0 @mui/utils: 5.0.1 @types/react: ^17.0.0 => 17.0.24 react: ^17.0.2 => 17.0.2 react-dom: ^17.0.2 => 17.0.2 typescript: ^4.1.2 => 4.4.3

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
michaldudakcommented, Oct 7, 2021

@phudekar sure, go ahead!

2reactions
michaldudakcommented, Oct 7, 2021

Thanks for the report. It’s either a bug or insufficient info in the docs. I’ll take care of it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Select] Unable to override styles with variants #28886 - GitHub
I'm able to provide style overrides for the MuiSelect component. Steps to Reproduce. The following codebox shows an example. I can change the ......
Read more >
Overriding the material-UI style not working - Stack Overflow
1.1 Use MUI internal style HOC withStyles to fully override the component. Using nesting selector import { Tabs, Tab, withStyles } from ...
Read more >
4 Ways to Override Material UI Styles | by John Au-Yeung
Understanding the 4 methods for overriding styling in Material UI StyleProvider, ThemeProvider, withStyles, and useStyles.
Read more >
How to customize - Material UI - MUI
Overriding styles with class names​​ If you want to override a component's styles using custom classes, you can use the className prop, available...
Read more >
Create interactive components with variants - Figma Help Center
You can override Figma's default behavior and arrange variants in any way you choose. Select a variant and move it to new co-ordinates...
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