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.

[styled-engine-sc] `styled()` doesn't respect the options

See original GitHub issue

https://github.com/mui-org/material-ui/blob/next/packages/material-ui-styled-engine-sc/src/index.js#L13

Doesn’t this line completely undo whatever happens in the conditional statement above?

  • 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 😯

Expected Behavior 🤔

Steps to Reproduce 🕹

Steps:

Context 🔦

Your Environment 🌎

`npx @material-ui/envinfo`
  Don't forget to mention which browser you used.
  Output from `npx @material-ui/envinfo` goes here.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
pasDamolacommented, May 17, 2021

Hi @mnajdova @0xF013 can I pick this up?

0reactions
mnajdovacommented, May 17, 2021

@pasDamola of course! It’s great first PR on Material-UI 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

[styled-engine-sc] styled() doesn't respect the options #26338
Correct, it needs to go in the else statement. It is a regression from #26098. Also, would be great to add a test...
Read more >
styled() - MUI System
All the MUI components are styled with this styled() utility. This utility is built on top of the styled() module of @mui/styled-engine and...
Read more >
reactjs - Material-UI v5 not working styled-components and ...
json? I have "@mui/styled-engine-sc in my deps and everything is working fine. – Edwin Vargas.
Read more >
@mui/styled-engine | Yarn - Package Manager
styled() API wrapper package for emotion. ... It also provides a shared interface that can be used with other styled engines, like styled-components....
Read more >
Pandoc User's Guide
The tool used to generate the PDF from the intermediate format may be specified using --pdf-engine . You can control the PDF style...
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