Commit Graph

59 Commits

Author SHA1 Message Date
Adam Bradley
d7be8a80c0 test(ngmodule): update to ngmodule 2016-09-13 15:44:02 -05:00
Brandy Carney
8c1662d5e9 test(button): update karma and e2e tests for the new color input 2016-08-23 18:34:55 -04:00
Brandy Carney
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
Brandy Carney
a8dc613627 test(button): fix karma tests for the new button syntax 2016-08-16 18:29:33 -04:00
Brandy Carney
d30643c4a0 chore: fix linter errors 2016-08-16 18:22:27 -04:00
Brandy Carney
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
Manu Mtz.-Almeida
ac8e4dce06 style(all): tslinter warnings 2016-07-19 13:31:46 -07:00
Adam Bradley
816a6486b0 fix(button): apply css for buttons w/ ngIf
Closes #5927
2016-07-04 21:26:58 -05:00
Adam Bradley
656426672c chore(templates): import required directives for ionic templates 2016-07-01 00:59:37 -05:00
Manu Mtz.-Almeida
4e88f89161 fix(button): outline buttons do not have hairline borders in iOS 2016-06-30 08:13:18 -05:00
Manu Mtz.-Almeida
5c804450c4 feat(ion-content): iOS only scroll bounce 2016-06-27 22:26:48 -05:00
Brandy Carney
8fb4563527 test(all): fix all e2e tests to include an ion-nav 2016-06-17 22:05:24 -04:00
Adam Bradley
5a85d82b8a fix(header): optional ViewController injection 2016-06-17 12:15:01 -05:00
Adam Bradley
1a8f6d745d test(header): update header markup 2016-06-17 11:43:30 -05:00
Adam Bradley
33672aef62 demos(header): update header markup 2016-06-17 11:39:59 -05:00
Brandy Carney
f7b2ea277d fix(button): check for icon and add css after content checked
fixes #6662
2016-06-07 13:20:39 -04:00
Adam Bradley
03f4511635 chore(tslint): fix noImplicitAny errors 2016-05-31 18:40:29 -05:00
Adam Bradley
6e9087534d test(bootstrap): update to use ionicBootstrap 2016-05-31 15:49:12 -05:00
Justin Willis
a51fbc5b0f chore(fab): document fab-fixed attribute 2016-05-25 10:29:43 -05:00
Brandy Carney
d0abbaf219 fix(button): style disabled anchor/button elements
add opacity and remove pointer events

closes #6108
2016-05-20 16:56:29 -04:00
Josh Thomas
2b836a930f chore(tests): correct components to use src path instead of ionic to ensure karma tests pass. 2016-05-19 16:58:08 -05:00
Josh Thomas
c8f760f080 chore(build): rename ionic directory to src and update all references in the build process. 2016-05-19 13:22:40 -05:00
Andrew
9039297110 rename src to ionic 2015-04-25 10:59:09 -05:00
Max Lynch
bfaafd1bba Block for buttons 2015-04-24 11:24:23 -05:00
Max Lynch
32befad143 Added property class feature to IonicComponent 2015-04-24 11:03:01 -05:00
Adam Bradley
2bad5739aa do not reset outline, start over for accessibility reasons 2015-04-22 19:30:25 -05:00
Adam Bradley
adeaf4d464 using material design term instead of android 2015-04-10 16:05:35 -05:00
Adam Bradley
9a9ded1d81 tab icons 2015-04-06 14:52:27 -05:00
Adam Bradley
f62577b8c0 material buttons 2015-04-03 21:54:17 -05:00
Adam Bradley
738436834c button updates 2015-04-03 16:50:58 -05:00
Adam Bradley
0983a180d3 rename positive to primary 2015-04-03 10:38:34 -05:00
Adam Bradley
a7e438a848 button icons 2015-04-02 22:32:10 -05:00
Adam Bradley
9f937eb24d button icons 2015-04-02 22:15:25 -05:00
Adam Bradley
b5b80b4116 buttons 2015-04-02 17:03:39 -05:00
Adam Bradley
cdce613756 buttons 2015-04-02 15:02:17 -05:00
Adam Bradley
81b4ca4ce0 rem units / toolbar stuff 2015-03-31 09:18:53 -05:00
Adam Bradley
33b43ee340 blank e2e tests 2015-03-30 15:19:33 -05:00
Adam Bradley
60e3383323 button tests 2015-03-28 23:26:53 -05:00
Adam Bradley
dec338e234 e2e test cleanup 2015-03-27 15:00:46 -05:00
Andrew
013e94d5b2 make snapshot e2e tests work, except main.js/main.html only 2015-03-27 13:30:09 -06:00
Adam Bradley
2f6dac4926 button small padding updates 2015-03-26 23:14:05 -05:00
Adam Bradley
afb545120e e2e 2015-03-25 13:19:23 -05:00
Adam Bradley
6fdc9515d6 snapshot 2015-03-24 09:32:39 -05:00
Adam Bradley
856e2663d1 ionicons 2015-03-23 22:56:59 -05:00
Adam Bradley
a9253ea404 examples update 2015-03-23 21:00:48 -05:00
Adam Bradley
e7a23eefff updates 2015-03-23 11:31:15 -05:00
Adam Bradley
2de9bfacf1 button-full 2015-03-23 08:23:25 -05:00
Adam Bradley
824ca7a245 button-block 2015-03-23 08:20:45 -05:00
Adam Bradley
fababbe546 flexbox buttons 2015-03-23 08:06:56 -05:00
Adam Bradley
c3f6875538 button sizes 2015-03-23 07:10:40 -05:00