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.

[Autocomplete] styleOverrides not apply working for Paper

See original GitHub issue

I have tried custom styleOverrides Autocomplete but I see it to work on the sandbox https://codesandbox.io/s/muiautocomplete-material-demo-forked-pv2ut?file=/index.js (apply both root and paper)

in my project with the same code

   MuiAutocomplete: {
      styleOverrides: {
        root: { <= work
          backgroundColor: 'blue'
        },
        paper: {<= Not work
          backgroundColor: 'blue'
        }
      }
    }

Does the current version v26 on npm match the sandbox?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, Mar 8, 2021

@dohomi It should keep working. We have designed the migration from JSS to styled to minimize the amount of breaking changes.

1reaction
oliviertassinaricommented, Mar 1, 2021

#25102 was fixed before the release. This issue is about how the popup is portaled. It’s a different issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Autocomplete] Using Theme to styleOverrides option is not ...
I tried to use theme to override option in Autocomplete component: MuiAutocomplete: { styleOverrides: { option: { padding: 10, '.
Read more >
MaterialUI v5 -> How to style Autocomplete options
I'm just trying to change the background color on hover, and based on whether or not it is selected. I've tried 2 approaches...
Read more >
MUI v5 -> How to style options inside Autocomplete component
I'm trying to apply some basic styles to the options inside the Autocomplete component from MUI v5. I'm just trying to change the...
Read more >
How to Style the Material-UI Autocomplete Component
The Material-UI Autocomplete component and its Popper component can be styled by targeting built-in MUI styling APIs.
Read more >
Autocomplete API - Material UI - MUI
Name Type Default options * array renderInput * func autoComplete bool false
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