-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Docs] Icon's docs update #2695
Conversation
@Zadielerick You have a conflict with this PR. |
hoverColor={Colors.greenA200} /> | ||
<FontIcon className="muidocs-icon-action-home" style={iconStyles} | ||
color={Colors.red500} hoverColor={Colors.greenA200} /> | ||
<FontIcon className="muidocs-icon-action-home" style={iconStyles} |
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 4 FontIcon
? I think that 2 is enough.
What do you think about breaking the
|
@oliviertassinari Yeah, I thought about that since they were both crammed into one. |
cb91805
to
61bb285
Compare
@oliviertassinari Now that I think about it, this also happens in the buttons with the 3 buttons(floating action, rasied, flat). Is there a way we are going to handle this? Or should I just split this up into two separate pages for now? |
Yeah, I think that we should also split up into 3 pages for the buttons.
Following #2690, we can create a third level: |
@oliviertassinari Nice, got it, thanks! |
|
||
const IconsExampleSVGIcons = () => ( | ||
<div> | ||
<ActionHome style={iconStyles} color={Colors.yellow500} hoverColor={Colors.greenA200} /> |
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.
x2 😁
f709365
to
a13fcdc
Compare
@@ -103,6 +104,7 @@ const AppRoutes = ( | |||
<Route path="refresh-indicator" component={RefreshIndicator} /> | |||
<Route path="select-field" component={SelectField} /> | |||
<Route path="sliders" component={Sliders} /> | |||
<Route path="svg-icon" component={SVGIconPage} /> |
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.
I'm not sure about the capital SVGIcon
, the component displayName is SvgIcon
.
Shouldn't we follow this?
@Zadielerick That's definitely better with the Icon section in the LeftNav 👍. |
@oliviertassinari Yeah, I like the new left nav layout! Great job! |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||
``` | ||
|
||
To see available Material Icons, go to [material icons library](https://design.google.com/icons/). The names are in snake_case format, for example: find_in_page |
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.
snake_case
or find_in_page
what's this?
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.
When calling google's material icons, their names are stored using that convention instead of camel case. For example, instead of ActionGrade, we would use action-grade when we wanted to call that svg from google's icons. I guess it should be phrased better
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.
Ok thanks. Can we use
action_home
example in this case?
@Zadielerick I think that we can reorganize the examples. The first example would have:
The second example would have:
|
182edff
to
c376d28
Compare
c376d28
to
2a2b5b1
Compare
@@ -0,0 +1,5 @@ | |||
## SVG Icons | |||
Using material-ui's SVG Icon, we can create a custom [svg component](https://www.google.com/design/spec/style/icons.html#icons-system-icons). In our examples, we are creating the ActionHome SvgIcon for this docs site, and using it in some separate component. | |||
Custom SvgIcon components can be included as children for other Material UI components that use icons such as [IconButtons](http://www.material-ui.com/#/components/icon-buttons). |
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.
The link changed from /icon-buttons
to /icon-button
.
7cfe4fa
to
024c6d4
Compare
282a1f3
to
bfc33b3
Compare
@Zadielerick That's some hard work, see my last component, I think that we can merge then 👍. |
bfc33b3
to
d414055
Compare
[Docs] Icon's docs update
Updated Documentation for Icons, which includes Font Icons and SVG Icons