Commit Graph

44 Commits

Author SHA1 Message Date
Adam Bradley
c4cf9df387 fix(input): fix tabbing between tappable inputs 2016-11-18 15:20:53 -06:00
Alan
025c5cc646 fix(components): add a mode agnostic css class (#9133)
Fixes #8545
2016-11-14 13:50:01 -05:00
Thomas Krupers
6b48076778 docs(): add sass variable descriptions (#8929)
docs(): add variable descriptions
2016-10-27 15:19:54 -04:00
Dan Bucholtz
83d973b1a8 chore(demos): change dgeni path for demos
change dgeni path for demos
2016-09-20 15:20:04 -05:00
Brandy Carney
bc7d328bc0 refactor(components): add color/mode properties 2016-09-13 17:11:38 -05:00
Brandy Carney
750cde38e2 refactor(css): scope component css to mode 2016-09-13 16:52:47 -05:00
Adam Bradley
d7be8a80c0 test(ngmodule): update to ngmodule 2016-09-13 15:44:02 -05: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
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
656426672c chore(templates): import required directives for ionic templates 2016-07-01 00:59:37 -05:00
Adam Bradley
4d56219a4c refactor(forms): upgrade to @angular/forms 2016-06-30 21:54:48 -05:00
Adam Bradley
c7fa9490bf style(imports): add spaces in imports 2016-06-22 14:29:27 -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
1a8f6d745d test(header): update header markup 2016-06-17 11:43:30 -05:00
Adam Bradley
03f4511635 chore(tslint): fix noImplicitAny errors 2016-05-31 18:40:29 -05:00
Adam Bradley
8a920a24a5 Merge branch 'bootstrap-refactor' into 2.0 2016-05-31 15:50:21 -05:00
Adam Bradley
6e9087534d test(bootstrap): update to use ionicBootstrap 2016-05-31 15:49:12 -05:00
Brandy Carney
d563aa65a3 refactor(events): rename all Ionic events to start with ion
BREAKING CHANGES:

Renamed all Ionic events to start with `ion`. The following events were
renamed:

- **Checkbox**
  - `change` -> `ionChange`
- **DateTime**
  - `change` -> `ionChange`
  - `cancel` -> `ionCancel`
- **InfiniteScroll**
  - `infinite` -> `ionInfinite`
- **Menu**
  - `opening` -> `ionDrag`
  - `opened` -> `ionOpen`
  - `closed` -> `ionClose`
- **Option**
  - `select` -> `ionSelect`
- **Picker**
  - `change` -> `ionChange`
- **RadioButton**
  - `select` -> `ionSelect`
- **RadioGroup**
  - `change` -> `ionChange`
- **Refresher**
  - `refresh` -> `ionRefresh`
  - `pulling` -> `ionPull`
  - `start` -> `ionStart`
- **Searchbar**
  - `input` -> `ionInput`
  - `blur` -> `ionBlur`
  - `focus` -> `ionFocus`
  - `cancel` -> `ionCancel`
  - `clear` -> `ionClear`
- **Segment**
  - `change` -> `ionChange`
  - `select` -> `ionSelect`
- **Select**
  - `change` -> `ionChange`
  - `cancel` -> `ionCancel`
- **Slides**
  - `willChange` -> `ionWillChange`
  - `didChange` -> `ionDidChange`
  - `move` -> `ionDrag`
- **TabButton**
  - `select` -> `ionSelect`
- **Tab**
  - `select` -> `ionSelect`
- **Tabs**
  - `change` -> `ionChange`
- **Toggle**
  - `change` -> `ionChange`

Closes #6568
2016-05-31 12:01:46 -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
Adam Bradley
cdd62e98b9 use IonicComponent 2015-04-22 16:56:57 -05:00
Adam Bradley
e0c7656c0d material checkbox 2015-04-10 21:39:00 -05:00
Adam Bradley
0983a180d3 rename positive to primary 2015-04-03 10:38:34 -05:00
Adam Bradley
c20e510147 init tabs 2015-04-01 16:03:21 -05:00
Adam Bradley
a337aca26b list updates 2015-03-31 22:28:04 -05:00
Andrew
df9ef592f5 make protractor tests work 2015-03-30 08:52:49 -06:00
Andrew
bedbe8b489 make tests work 2015-03-30 08:09:09 -06:00
Adam Bradley
d61f083896 radio 2015-03-29 22:35:37 -05:00
Adam Bradley
46f225a932 checkbox disabled 2015-03-28 21:24:56 -05:00
Adam Bradley
8fe9fa86be pointer events none 2015-03-28 20:49:28 -05:00
Andrew
afe6fd3c8a make checkboxes work 2015-03-28 19:42:12 -06:00
Andrew
042c567a50 e2e: make examples build per-platform 2015-03-27 15:27:09 -06:00
Adam Bradley
e49d275cd5 checkbox basic 2015-03-27 14:53:28 -05:00
Adam Bradley
1c8502b230 remove test index.html files 2015-03-27 14:39:50 -05:00
Adam Bradley
7afd5d39ab iOS checkbox 2015-03-27 14:31:39 -05:00
Adam Bradley
b660777ffa checkbox updates 2015-03-27 13:54:26 -05:00
Adam Bradley
56461d939b move around extension files 2015-03-27 13:39:54 -05:00
Adam Bradley
461266bb17 iOS checkbox 2015-03-25 22:48:27 -05:00
Adam Bradley
0e0c0df733 checkbox 2015-03-25 22:33:31 -05:00
Adam Bradley
afb545120e e2e 2015-03-25 13:19:23 -05:00
Adam Bradley
dba853dba4 init to win it 2015-03-24 21:08:44 -05:00
Adam Bradley
2d81e1020d naming components 2015-03-24 15:37:35 -05:00