Skip to content

Commit

Permalink
Fix size prop in button demo component
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronlademann-wf committed Oct 25, 2016
1 parent 7120e0d commit 38df3b6
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 16 deletions.
26 changes: 18 additions & 8 deletions build/web/demos/button/index.dart.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/web/demos/button/index.dart.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/web/demos/list-group/index.dart.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/web/demos/progress/index.dart.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/web/demos/tag/index.dart.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion build/web/src/demo_components/button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ class ButtonComponent extends UiComponent<ButtonProps> with _$ButtonComponentImp
..add('btn-block', props.isBlock)
..add('active', props.isActive)
..add('disabled', props.isDisabled)
..add(props.skin.className);
..add(props.skin.className)
..add(props.size.className);
}

BuilderOnlyUiFactory<DomProps> get _buttonDomNodeFactory => _isAnchorLink ? Dom.a : Dom.button;
Expand Down
3 changes: 2 additions & 1 deletion build/web/src/demo_components/button.dart.diff.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@
..add('btn-block', props.isBlock)
..add('active', props.isActive)
..add('disabled', props.isDisabled)
..add(props.skin.className);
..add(props.skin.className)
..add(props.size.className);
}

BuilderOnlyUiFactory&lt;DomProps&gt; get _buttonDomNodeFactory =&gt; _isAnchorLink ? Dom.a : Dom.button;
Expand Down
3 changes: 2 additions & 1 deletion docs/_includes/component-demo-code-ex/button.dart.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@
..add('btn-block', props.isBlock)
..add('active', props.isActive)
..add('disabled', props.isDisabled)
..add(props.skin.className);
..add(props.skin.className)
..add(props.size.className);
}

BuilderOnlyUiFactory<DomProps> get _buttonDomNodeFactory => _isAnchorLink ? Dom.a : Dom.button;
Expand Down
3 changes: 2 additions & 1 deletion web/src/demo_components/button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ class ButtonComponent extends UiComponent<ButtonProps> {
..add('btn-block', props.isBlock)
..add('active', props.isActive)
..add('disabled', props.isDisabled)
..add(props.skin.className);
..add(props.skin.className)
..add(props.size.className);
}

BuilderOnlyUiFactory<DomProps> get _buttonDomNodeFactory => _isAnchorLink ? Dom.a : Dom.button;
Expand Down

0 comments on commit 38df3b6

Please sign in to comment.