Skip to content

Commit

Permalink
Merge pull request #102 from discoverfinancial/init
Browse files Browse the repository at this point in the history
Change standardButton.height to PropertyNumber
  • Loading branch information
smithbk authored Sep 20, 2023
2 parents c03d422 + 44325ad commit 0e7319c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/molecules/standardButtons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import { Molecule } from "./molecule";
import { IMolecules } from "../interfaces";
import { PropertyStringSelectable, PropertyShadowSelectable, PropertyNumberSelectable } from "../common/props";
import { PropertyStringSelectable, PropertyShadowSelectable, PropertyNumberSelectable, PropertyNumber } from "../common/props";

/**
* The standard button molecule.
Expand All @@ -15,7 +15,7 @@ export class StandardButtons extends Molecule {
/** The minimum width property */
public minWidth: PropertyNumberSelectable;
/** The height property */
public height: PropertyNumberSelectable;
public height: PropertyNumber;
/** The radius property */
public radius: PropertyNumberSelectable;
/** The horizontal padding property */
Expand All @@ -30,7 +30,7 @@ export class StandardButtons extends Molecule {
constructor(molecules: IMolecules) {
super("Standard Buttons", molecules);
this.minWidth = new PropertyNumberSelectable("Button Minimum Width", false, this, [40/8, 44/8, 48/8, 56/8], 44/8);
this.height = new PropertyNumberSelectable("Button Height", false, this, [40/8, 44/8, 48/8, 56/8], 44/8);
this.height = new PropertyNumber("Button Height", false, this, {defaultValue: 44/8});
this.radius = new PropertyNumberSelectable("Button Radius", false, this, [0, 2/8, 4/8, 1, 2, 3, 4, 5, 6, 7, 8], 3);
this.horizontalPadding = new PropertyNumberSelectable("Horizontal Padding", false, this, [2, 3, 4, 5], 3);
this.buttonText = new PropertyStringSelectable("Button Text", false, this, {
Expand Down

0 comments on commit 0e7319c

Please sign in to comment.