-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[For Review] Menu/Popover/IconMenu/Dialog Portal updates #1845
Conversation
@@ -67,7 +68,7 @@ let AppRoutes = ( | |||
|
|||
<Route name="customization" handler={Customization}> | |||
<Route name="colors" handler={Colors} /> | |||
<Route name="themes" handler={Themes} /> | |||
<Route name="themes" handler={Themes} />let |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it necessary?
Updated PR:
|
b7ff8ac
to
201dfc1
Compare
I've updated this PR - lots of changes....
Updated the following components to use it
It'd be great if review + merge process could start? |
158f189
to
d3d46d1
Compare
@@ -331,7 +331,8 @@ const TextField = React.createClass({ | |||
inputProps.onChange = this._handleInputChange; | |||
} | |||
if (this.props.children) { | |||
inputElement = React.cloneElement(this.props.children, {...inputProps, ...this.props.children.props}); | |||
let childInputStyle = this.mergeStyles(inputStyle, this.props.children.style); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove the extra commit from #1896?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrismcv are you still having the warnings regarding @oliviertassinari seems like you have reviewed this a little. Is it merge-ready? |
v14 has sorted context issues happily. I removed the initial context hacks that I had in for v13. I think the changes here are significant, and technically, they are just about there now. There are a few more docs changes I think we should put in. (And at least one fix to docs site "customisation section"). I've made dialog have an The Dropdown/Icon Menu transitions are subtly different from previous. The bit I'd like you to look at is the interface for position the popover. I've introduced My nested menu support is a little rudimentary, its currently missing some keyboard support - but this seems partly true of the new menus stuff in general. |
@shaurya947 not yet |
@shaurya947 I've landed on something very similar to #1996, bar my property is called |
@chrismcv we're slightly short of a final agreement on that. Should reach a conclusion soon hopefully! :-) |
], | ||
}, | ||
{ | ||
name: 'Methods', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need those imperative methods? I would rather avoid them.
@chrismcv There is a lot in this PR. Can't we split this into independent bit? |
@oliviertassinari - yes I agree. Does the following make sense (1+2 being dependencies for 3+4)
|
@chrismcv is this PR stale then? Are you going to close it? |
closing for now - more to follow |
* Change component name from MuiPickers to MuiPicker * Name root classnames "root" * Use pseudo-classes for disabled styling * Remove useless yearDisabled class * Update demo and typescript tests for overrides * Repalce MuiPicker with MuiPickers * Consolidate right component display name with mui component name * Update index.ts reexports to match component display names * Remove useless parameter * Fix docs example * Fix override example tsc * Use pseudo-classes for selected and disabled, closes mui#1845 * Address PR feedback * Update lib/src/Picker/Picker.tsx Co-authored-by: Olivier Tassinari <[email protected]> * Update lib/src/views/Clock/Clock.tsx Co-authored-by: Olivier Tassinari <[email protected]> * Make more convenient css classes names * Remove today border from selected day * Remove useless comment * Update tests * Fix global overrid of Mui-selected and Mui-disabled classes * Use theme.palette.secondary instead of hint * Fix linter * Fix incorrect package prefix Co-authored-by: Olivier Tassinari <[email protected]>
This PR
a) currently breaks dialogs
b) introduces a component
Popover
which is an arbitrary control that shows a popup menu, eitheronClick
or onprops.open = true
.c) Popover component wraps menu in IconMenu - nearly transparently.
d) Popover renders to a new DOM Tree, and in theory context should transfer for [email protected]
e) Dialog renders into new tree, but has issues that I'll sort shortly...