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

[Popover] Remove style-propable mixin #3201

Merged
merged 1 commit into from
Feb 6, 2016

Conversation

newoga
Copy link
Contributor

@newoga newoga commented Feb 6, 2016

I noticed a regression/breaking change last minute with this that I can change back, but wanted to get your feedback first about this scenario in general. I'll leave a comment at the particular line of code I'm talking about.


return (
<Paper
style={this.mergeStyles(styles.base, style, openStyles.base)}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I take it that the reason why styles.base is separate from openStyles.base is so that developers can't override openStyles. I really wonder if that additional logic is worth it though for what we're getting for it. Right now position is overridable and that would completely break this component. In addition transformOrigin isn't being protected either.

Personally, I think it's easier on us and the developer not make any exceptions about what they can and can't override. I think the "protection mechanism" is too brittle for it to be worth it in this case. I'm open to changing it back though!

Copy link
Member

Choose a reason for hiding this comment

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

No I agree with you. there are no important reasons to protect against overriding it. i'd say this is good 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good, I'll remove [WIP] from the title because I wanted us to discuss that point first before merging. Thanks!

@newoga newoga changed the title [WIP] [Popover] Remove style-propable mixin [Popover] Remove style-propable mixin Feb 6, 2016
@alitaheri
Copy link
Member

Awesome 👍 🎉

@oliviertassinari
Copy link
Member

@newoga Thanks!

oliviertassinari added a commit that referenced this pull request Feb 6, 2016
[Popover] Remove style-propable mixin
@oliviertassinari oliviertassinari merged commit ea4afa7 into mui:master Feb 6, 2016
@newoga newoga deleted the #2852/popover branch February 6, 2016 23:22
@zannager zannager added the component: Popover The React component. label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Popover The React component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants