-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed icon dependency from dropdown menu
- Loading branch information
Hai Nguyen
committed
Jan 20, 2015
1 parent
541f7b9
commit 3c752cb
Showing
6 changed files
with
63 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
var React = require('react'); | ||
var SvgIcon = require('./svg-icon.jsx'); | ||
|
||
var DropDownArrow = React.createClass({ | ||
|
||
render: function() { | ||
return ( | ||
<SvgIcon {...this.props}> | ||
<polygon points="7,9.5 12,14.5 17,9.5 "/> | ||
</SvgIcon> | ||
); | ||
} | ||
|
||
}); | ||
|
||
module.exports = DropDownArrow; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
var React = require('react'); | ||
var Classable = require('../mixins/classable.js'); | ||
|
||
var SvgIcon = React.createClass({ | ||
|
||
mixins: [Classable], | ||
|
||
render: function() { | ||
var classes = this.getClasses('mui-svg-icon'); | ||
|
||
return ( | ||
<svg | ||
{...this.props} | ||
className={classes} | ||
viewBox="0 0 24 24"> | ||
{this.props.children} | ||
</svg> | ||
); | ||
} | ||
|
||
}); | ||
|
||
module.exports = SvgIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.mui-svg-icon { | ||
position: relative; | ||
height: @icon-size; | ||
width: @icon-size; | ||
display: inline-block; | ||
user-select: none; | ||
|
||
* { | ||
fill: @body-text-color; | ||
} | ||
} |