11 Commits

Author SHA1 Message Date
bc7d328bc0 refactor(components): add color/mode properties 2016-09-13 17:11:38 -05:00
8c1662d5e9 test(button): update karma and e2e tests for the new color input 2016-08-23 18:34:55 -04:00
55a0257dbc refactor(colors): color should be added as an input instead of directly adding the color to the component
BREAKING CHANGES:

Colors should be passed in the `color` input on components, not added
individually as an attribute on the component.

For example:

```
<ion-tabs primary>
```

Becomes

```
<ion-tabs color=”primary”>
```

Or to bind an expression to color:

```
<ion-navbar [color]="barColor">
   ...
</ion-navbar>
```

```ts
@Component({
  templateUrl: 'build/pages/about/about.html'
})
export class AboutPage {
  barColor: string;

  constructor(private nav: NavController, platform: Platform) {
    this.barColor = platform.is('android') ? 'primary' : 'light';
  }
}
```

Reason for this change:
It was difficult to dynamically add colors to components, especially if
the name of the color attribute was unknown in the template.
This change keeps the css flat since we aren’t chaining color
attributes on components and instead we assign a class to the component
which includes the color’s name.
This allows you to easily toggle a component between multiple colors.
Speeds up performance because we are no longer reading through all of
the attributes to grab the color ones.

references #7467
closes #7087 closes #7401 closes #7523
2016-08-23 17:16:55 -04:00
938864e8d0 refactor(button): add ion-button attribute and icon attributes to style buttons
BREAKING CHANGES:

- `<button>` becomes `<button ion-button>`
- `<a button>` becomes `<a ion-button>`
- `<button ion-item>` does not get the `ion-button` attribute
- Buttons inside of `<ion-item-options>` do get the `ion-button`
attribute
- Removed the `category` attribute, this should be passed in
`ion-button` instead.
- Button attributes added for icons in buttons: `icon-only`,
`icon-left`, and `icon-right`

closes #7466
2016-08-16 17:11:02 -04:00
ac8e4dce06 style(all): tslinter warnings 2016-07-19 13:31:46 -07:00
816a6486b0 fix(button): apply css for buttons w/ ngIf
Closes #5927
2016-07-04 21:26:58 -05:00
656426672c chore(templates): import required directives for ionic templates 2016-07-01 00:59:37 -05:00
f7b2ea277d fix(button): check for icon and add css after content checked
fixes #6662
2016-06-07 13:20:39 -04:00
03f4511635 chore(tslint): fix noImplicitAny errors 2016-05-31 18:40:29 -05:00
a51fbc5b0f chore(fab): document fab-fixed attribute 2016-05-25 10:29:43 -05:00
c8f760f080 chore(build): rename ionic directory to src and update all references in the build process. 2016-05-19 13:22:40 -05:00