Skip to content

Commit

Permalink
Merge pull request #574 from grmlin/master
Browse files Browse the repository at this point in the history
icon alignment fixes for floating action button links
  • Loading branch information
mmrtnz committed Apr 24, 2015
2 parents a360242 + 8b4bc83 commit 79484b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/src/app/components/pages/components/buttons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ var ButtonPage = React.createClass({
'<FloatingActionButton iconClassName="muidocs-icon-action-grade" />\n' +
'<FloatingActionButton iconClassName="muidocs-icon-action-grade" mini={true} />\n' +
'<FloatingActionButton iconClassName="muidocs-icon-action-grade" disabled={true} />\n' +
'<FloatingActionButton iconClassName="muidocs-icon-custom-github" linkButton={true} href="https://github.com/callemall/material-ui" mini={true} secondary={true}/>' +
'<FloatingActionButton iconClassName="muidocs-icon-action-grade" mini={true} disabled={true} />\n' +
'<FloatingActionButton iconClassName="muidocs-icon-action-grade" secondary={true} />\n' +
'<FloatingActionButton iconClassName="muidocs-icon-action-grade" mini={true} secondary={true} />';
Expand Down Expand Up @@ -126,7 +127,7 @@ var ButtonPage = React.createClass({
type: 'string',
header: 'optional',
desc: 'This is the classname of the icon to display inside the button. This only applies to ' +
'floating action buttons. An alternative to adding an icon would be to insert a custom svg ' +
'floating action buttons. An alternative to adding an icon would be to insert a custom svg ' +
'component or FontIcon as a child.'
},
{
Expand Down Expand Up @@ -224,6 +225,9 @@ var ButtonPage = React.createClass({
<div className="button-example-container">
<FloatingActionButton iconClassName="muidocs-icon-action-grade" disabled={true} />
</div>
<div className="button-example-container">
<FloatingActionButton iconClassName="muidocs-icon-custom-github" linkButton={true} href="https://github.com/callemall/material-ui" mini={true} secondary={true}/>
</div>
<div className="button-example-container">
<FloatingActionButton iconClassName="muidocs-icon-action-grade" mini={true} disabled={true} />
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/less/components/floating-action-button.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
overflow: hidden;
background-color: @floating-action-button-color;
border-radius: 50%;
text-align: center;
vertical-align: bottom;

//This is need so that ripples do not bleed
//past border radius.
Expand Down

0 comments on commit 79484b2

Please sign in to comment.