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

prefix this does not affect to the handler #31

Closed
romanown opened this issue Aug 9, 2018 · 5 comments
Closed

prefix this does not affect to the handler #31

romanown opened this issue Aug 9, 2018 · 5 comments

Comments

@romanown
Copy link

romanown commented Aug 9, 2018

if I set the prefix this does not affect to the handler, example prefixCls='mydrawer'
drawer_prefix. it is right? maybe that's what it's meant to be?
https://codesandbox.io/s/ykq7rlzmz9

@romanown romanown changed the title the color of the icon handler on the main page on different pages prefix this does not affect to the handler Aug 10, 2018
@romanown
Copy link
Author

romanown commented Aug 11, 2018

and if prefixCls='mydrawer' is .drawer-open .drawer-handle not working. it is not changing to .mydrawer-open .mydrawer-handle when drawer is opened.

@romanown
Copy link
Author

I did find how to change the code of the component to parameter prefixCls effect on the "Burger". I took as a basis the default code of this element and added prefixCls. Maybe I did it wrong so the code doesn't show up to not distort your thoughts.

@romanown
Copy link
Author

romanown commented Aug 12, 2018

But if you do not have time and desire to do this here is the code to control and add to the component.
var _props3 = _this3.props, className = _props3.className, prefixCls = _props3.prefixCls, style = _props3.style, placement = _props3.placement, children = _props3.children,
the beginning of change
handler = React.createElement( 'div', { className: prefixCls + '-handle' }, React.createElement('i', { className: prefixCls + '-handle-icon' }) ),
the ending of change
showMask = _props3.showMask, maskStyle = _props3.maskStyle;

@jljsj33 jljsj33 closed this as completed Aug 27, 2018
@jljsj33
Copy link
Member

jljsj33 commented Aug 27, 2018

#37

@romanown
Copy link
Author

But the issue 37 describes another problem. 37 issue describes is no action and this does not change the appearance of the item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants