Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
Merge pull request #1183 from ironmansoftware/udfab-work
Browse files Browse the repository at this point in the history
Ud-fab Small Size Fix!
  • Loading branch information
adamdriscoll authored Sep 26, 2019
2 parents 7280d93 + 3fb65f9 commit f5cff47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/UniversalDashboard.Materialize/Components/ud-fab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default class UDFab extends React.Component {
id={this.props.id}
floating
large={this.props.size === "large"}
small={this.props.size === "small"}
icon={icon}
>
{children}
Expand Down Expand Up @@ -85,6 +86,7 @@ class UDFabButton extends React.Component {
id={this.props.id}
floating
large={this.props.size === "large"}
small={this.props.size === "small"}
style={style}
>
{icon}
Expand Down
4 changes: 2 additions & 2 deletions src/UniversalDashboard.Materialize/Scripts/fab.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function New-UDFab {

id = $id
content = $Children
size = $Size
size = $Size.tolower()
backgroundColor = $ButtonColor.HtmlColor
color = $IconColor.HtmlColor
expandDirection = $ExpandDirection
Expand Down Expand Up @@ -92,7 +92,7 @@ function New-UDFabButton {
isPlugin = $true

id = $id
size = $Size
size = $Size.tolower()
backgroundColor = $ButtonColor.HtmlColor
color = $IconColor.HtmlColor
icon = $iconName
Expand Down

0 comments on commit f5cff47

Please sign in to comment.