Commit Graph

68 Commits

Author SHA1 Message Date
Brandy Carney
db9f1a87b7 fix(popover): remove css contain from popover 2016-12-06 16:07:40 -05:00
Brandy Carney
660d53101f docs(sass): add documentation for the remaining sass variables
closes #8785
2016-12-05 10:16:40 -05:00
Brandy Carney
3532a71c29 docs(sass): add documentation for sass variables
This adds documentation for loading, menu, picker, popover, radio,
refresher, select, and toast. Also removes unused variables.

References #8785
2016-12-01 18:39:52 -05:00
mif
86b158008d docs(popover): update links to popover
closes #8912
2016-11-18 15:56:31 -05:00
Manu Mtz.-Almeida
32ab817181 fix(gestures): gesture controller handled by components
* fix(gestures): gesture controller is handled by components

fixes #9046

* fix(gestures): adds hybrid disable scroll assistance

fixes #9130
fixes #9052
fixes #7444
2016-11-16 10:03:51 -06:00
Brandy Carney
5e5c33a2d9 fix(item): fix color input for item divider and list header
* fix(item): fix color input for item divider and list header

- adds ItemDivider class to add color and mode css classes to item
divider
- adds e2e test for item divider colors
- adds sass variables to improve control over list headers and item
divider styles
- fixes style for item divider so it will be styled regardless of being
inside a list for md and wp modes

references #8376

* refactor(popover): remove the background color styling from ion-content and item

- change the default text color and background color to match the theme
variables. This makes popover look better on dark theme and removes the
nesting of styles that breaks list headers.

fixes #8376
2016-11-10 19:46:25 -06:00
Manu Mtz.-Almeida
033e1eae17 fix(nav): adds public willLoad lifecycle event
* fix(nav): adds public willLoad lifecycle event

* test(menu): adds more asserts
2016-11-01 13:12:29 -05:00
Manu Mtz.-Almeida
35568ba85f chore: removed deprecated APIs 2016-10-13 11:02:45 -05:00
softhorizons
dce4edf962 docs(popover): clarify the dismiss of a popover (#7795)
Clarify that that unfortunately-named onDidDismiss() is not a callback, but rather *sets up* a callback. Also explain dismiss()'s argument and its relation to said callback.
2016-10-12 15:56:17 -04:00
Colin Frick
c996d85d06 fix(popover): flipped arrow on iOS (#8462) 2016-10-12 13:48:07 -04:00
Manu Mtz.-Almeida
451ffe1133 fix(nav): ionViewDidLoad is called in modals
fixes #8449
2016-10-12 11:38:44 -05:00
Brandy Carney
75eb743786 test(popover): fix popover e2e test to use the shared css 2016-10-11 14:54:13 -04:00
Adam Bradley
d8ecf16feb refactor(nav): do not auto-add pascal case css class
Previously a css class generated from the JS class name, was
automatically being added to the page element. However, the JS class
name returned is not consistent among all browsers. Instead of
automatically applying a css classname, we now recommend adding a
`selector` to each page component.
2016-09-26 00:40:10 +01:00
Dan Bucholtz
83d973b1a8 chore(demos): change dgeni path for demos
change dgeni path for demos
2016-09-20 15:20:04 -05:00
Adam Bradley
7c05d0c0ba fix(di): update dependency injection and default configs 2016-09-16 00:49:09 -05:00
Adam Bradley
52ada1ca6d chore(components): ngmodule updates 2016-09-13 17:07:33 -05:00
Brandy Carney
16df3a4aab refactor(css): update theme imports 2016-09-13 16:57:32 -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
Thiery Laverdure
c11ae69b12 docs(popover): update instructions for presenting a popover 2016-08-17 09:22:09 -05: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
Brandy Carney
54a33e08e7 docs(overlays): update the overlay docs for multiple classes in cssClass
closes #7618
2016-08-10 11:12:02 -04:00
Brandy Carney
a685cdc4af feat(popover): add ability to pass multiple classes to cssClass
references #7618
2016-08-09 16:09:02 -04:00
Manu Mtz.-Almeida
ac8e4dce06 style(all): tslinter warnings 2016-07-19 13:31:46 -07:00
Adam Bradley
cca3309f4c chore(nav): create nav-interfaces file 2016-07-11 23:24:25 -05:00
Brandy Carney
55bc32dafe fix(popover): remove min-height from ios, add sass variables
sass variables added for min-width and min-height.

closes #7215
2016-07-08 14:25:21 -04:00
Adam Bradley
656426672c chore(templates): import required directives for ionic templates 2016-07-01 00:59:37 -05:00
mhartington
cd6ad23ef3 docs(viewController, picker, popover, toast, gestures, utils): update docs 2016-06-30 15:50:26 -04:00
Manu Mtz.-Almeida
ec99bfd019 feat(viewcontroller): add onWillDismiss callback
Fixed #6702
2016-06-30 08:06:19 -05:00
Adam Bradley
4980659bd6 test(overlay): use injectable overlay controllers 2016-06-28 15:20:42 -05:00
Adam Bradley
215c6d846c refactor(overlays): inject overlay providers
BREAKING CHANGES:

- Overlay components, such as Alert or Modals, should now be created
using its injected provider.
- Overlays now have the `present()` method on the overlay’s instance,
rather than using `nav.present(overlayInstance)`.
- All overlays now present on top of all app content, to include menus.
- Below is an example of the change to `Alert`, but the pattern is the
same for all overlays: ActionSheet, Loading, Modal, Picker, Popover,
Toast

WAS:

```
import { NavController, Alert } from ‘ionic-angular’;

constructor(private nav: NavController) {
}

doAlert() {
  let alert = Alert.create({
    title: 'Alert',
  });
  this.nav.present(alert);
}
```

NOW:

```
import { AlertController } from ‘ionic-angular’;

constructor(private alertCtrl: AlertController) {
}

doAlert() {
  let alert = this.alertCtrl.create({
    title: 'Alert'
  });
  alert.present();
}
```
2016-06-28 15:18:09 -05:00
Adam Bradley
c7fa9490bf style(imports): add spaces in imports 2016-06-22 14:29:27 -05:00
Adam Bradley
1a8f6d745d test(header): update header markup 2016-06-17 11:43:30 -05:00
Adam Bradley
e5d79d28c0 refactor(ViewController): remove need for viewType property 2016-06-16 15:26:16 -05:00
Adam Bradley
d13fa4e2cf refactor(structure): allow content to scroll under headers/footers 2016-06-16 11:28:02 -05:00
flavordaaave
ea450d41d3 fix(popover): allow target element to be positioned at left:0
fixes #6896
2016-06-14 17:31:59 -04:00
Brandy Carney
8350df0cfc fix(popover): hide arrow if no event was passed
closes #6796
2016-06-09 17:03:28 -04:00
Dan Bucholtz
1d78f78407 feat(popover): background dismiss, escape dismiss
background dismiss, escape dismiss

closes #6817
2016-06-09 13:54:46 -05:00
Dan Bucholtz
2be96f29b2 * refactor(overlays): overlays now are enabled via ionViewDidEnter (#6811) closes #6753
overalys now are enabled via ionViewDidEnter

* style(overlays): fixed tslint error

fixed tslint error

* style(overlays): formatting

formatting

* refactor(overlays): minor refactor to match style

minor refactor to match style
2016-06-09 13:35:03 -05:00
Adam Bradley
c1d09dd6b2 refactor(nav): replace DynamicComponentLoader w/ ComponentFactory 2016-06-08 16:42:23 -05:00
Brandy Carney
9ea89ea83c fix(popover): style the ion-content background in a popover to match popover bg 2016-06-03 14:41:29 -04:00
Brandy Carney
c801d1800b fix(popover): allow popover to have an ion-content wrapping it 2016-06-03 12:40:17 -04:00
Manu Mtz.-Almeida
a1a582b7a1 fix(ion-backdrop): new ion-backdrop can prevent background scrolling
closes #6656
2016-06-02 17:09:44 +02:00
Adam Bradley
c18335e946 refactor(lifecycle): lifecycle methods prefixed w/ ionView
BREAKING CHANGES:

- Lifecycle method prefixes have changed to `ionView`
- `onPageLoaded` renamed to `ionViewLoaded`
- `onPageWillEnter` renamed to `ionViewWillEnter`
- `onPageDidEnter` renamed to `ionViewDidEnter`
- `onPageWillLeave` renamed to `ionViewWillLeave`
- `onPageDidLeave` renamed to `ionViewDidLeave`
- `onPageWillUnload` renamed to `ionViewWillUnload`
- `onPageDidUnload` renamed to `ionViewDidUnload`
2016-06-01 12:06:15 -05:00
Adam Bradley
11448dcd0c chore(tslint): fix noImplicitAny errors 2016-05-31 21:07:17 -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
Adam Bradley
94e938d6b3 docs(bootstrap): update to use ionicBootstrap 2016-05-31 15:47:16 -05:00
Brandy Carney
6bd91f02a3 fix(popover): position MD popover on top of element clicked
fixes #6683
2016-05-31 13:40:36 -04:00