Skip to content

[Box] boxShadow property is not flowing through #16260

@nareshbhatia

Description

@nareshbhatia

The boxShadow property of Box is not showing up in HTML.

  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔

Here's an example of using the boxShadow property. It should show up as box-shadow property in HTML.

<Box
      height={320}
      bgcolor="#E23838"
      color="#fff"
      boxShadow="inset 0px 4px 4px rgba(0, 0, 0, 0.25)"
      display="flex"
      flexDirection="column"
      justifyContent="center"
      alignItems="center"
    >
      <Typography variant="h1">Hello!</Typography>
</Box>

Current Behavior 😯

All other properties show up, but box-shadow does not.

Steps to Reproduce 🕹

Link: https://codesandbox.io/embed/box-shadow-issue-33o9g

Your Environment 🌎

Tech Version
Material-UI v4.1.1
React 16.8.6
Browser Chrome
TypeScript 3.4.5
etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGreat for first contributions. Enable to learn the contribution process.hacktoberfesthttps://hacktoberfest.digitalocean.com/scope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUItype: new featureExpand the scope of the product to solve a new problem.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions