-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
scope: buttonChanges related to the button.Changes related to the button.scope: paperChanges related to the <Paper>.Changes related to the <Paper>.
Description
The PaperButton
component is a div
at the moment. This is not an ideal a solution cause you lost the feature to accessing the button by tab clicks. I would propose a change in the Paper
component so that it will support the setting of the element type like this:
var Root = React.createFactory(this.props.elementType || 'div');
return (
<Root className={classes} onClick={this._onClick} onMouseDown={this._onMouseDown} onMouseUp={this._onMouseUp}>
<div className={insideClasses}>
{this.props.children}
</div>
</Root>
);
Metadata
Metadata
Assignees
Labels
scope: buttonChanges related to the button.Changes related to the button.scope: paperChanges related to the <Paper>.Changes related to the <Paper>.