Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Paper] Allow the box shadow color to be changed #3003

Merged
merged 1 commit into from
Jan 25, 2016
Merged

[Paper] Allow the box shadow color to be changed #3003

merged 1 commit into from
Jan 25, 2016

Conversation

tibdex
Copy link
Contributor

@tibdex tibdex commented Jan 21, 2016

This allows dark or custom themes to change the box-shadow color of paper elements

@@ -109,6 +109,16 @@ export default function getMuiTheme(baseTheme, muiTheme) {
},
paper: {
backgroundColor: palette.canvasColor,
zDepthShadows: [null].concat([
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for using concat?

@tibdex
Copy link
Contributor Author

tibdex commented Jan 22, 2016

If you think the code is okay now, I can squash the commits to have a cleaner merge ;)

@tibdex tibdex changed the title Add shadowColor to the palette [Paper] Allows the box shadow color to be changed Jan 22, 2016
@tibdex tibdex changed the title [Paper] Allows the box shadow color to be changed [Paper] Allow the box shadow color to be changed Jan 22, 2016
[14, 45, 0.25, 10, 18, 0.22],
[19, 60, 0.30, 15, 20, 0.22],
].map(d => {
const shadowColor = palette.shadowColor || Colors.fullBlack;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what to think about palette.shadowColor.
That's kind of an undocumented hidden feature.
That makes me think that we should add it to the lightBaseTheme.
(I know, I asked you to remove it, sorry 😁)

@alitaheri @newoga What do you think about using palette.shadowColor in this file and adding shadowColor: Colors.fullBlack in the lightBaseTheme.jsx?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah makes sense 👍 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup I agree, I think that makes more sense 👍

@oliviertassinari oliviertassinari added PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI and removed PR: Needs Review labels Jan 23, 2016
@tibdex
Copy link
Contributor Author

tibdex commented Jan 25, 2016

I squashed everything into one small commit to have a cleaner log ;)

@oliviertassinari oliviertassinari added PR: Review Accepted and removed PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI labels Jan 25, 2016
oliviertassinari added a commit that referenced this pull request Jan 25, 2016
[Paper] Allow the box shadow color to be changed
@oliviertassinari oliviertassinari merged commit e227a77 into mui:master Jan 25, 2016
@oliviertassinari
Copy link
Member

@tibdex Merci!

@zannager zannager added the component: Paper This is the name of the generic UI component, not the React module! label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Paper This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants