From ce2e4a3e325ea9f467eb55dd7e93be4f017af583 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 8 Dec 2015 15:48:40 -0600 Subject: [PATCH] fix back button, add deprecation warnings --- CHANGELOG.md | 6 ++++-- demos/list/basic-list.html | 4 ++-- demos/list/inset-list.html | 4 ++-- demos/list/list-headers.html | 4 ++-- demos/list/no-lines-list.html | 4 ++-- demos/list/sliding-items.html | 4 ++-- ionic/components/menu/menu-toggle.ts | 5 +++++ .../components/menu/test/multiple/page1.html | 4 ++-- ionic/components/navbar/navbar.ts | 2 +- ionic/components/text-input/label.ts | 3 +++ ionic/components/toolbar/modes/ios.scss | 5 +++-- ionic/components/toolbar/toolbar.ts | 19 ++++++++++++++++++- 12 files changed, 46 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dab535261..893b0b7bea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ### Breaking Changes -#### CSS Refactor +##### CSS Refactor * Attributes are now used by Ionic to add the correct CSS classes to elements * Drastically reduced the depth of CSS selectors @@ -19,7 +19,9 @@ * ie: Gray navbars in iOS, blue navbars in MD. Identical HTML/JS -#### `` renamed to `` +##### `` renamed to `` * `primary` attribute `` now `` * `secondary` attribute `` now `` + +##### should now be Basic List diff --git a/demos/list/inset-list.html b/demos/list/inset-list.html index 0aaf03e24d..dc56d52d6c 100644 --- a/demos/list/inset-list.html +++ b/demos/list/inset-list.html @@ -1,9 +1,9 @@ - + Inset List diff --git a/demos/list/list-headers.html b/demos/list/list-headers.html index f0ca3edbd7..8d460c6be4 100644 --- a/demos/list/list-headers.html +++ b/demos/list/list-headers.html @@ -1,9 +1,9 @@ - + List Headers diff --git a/demos/list/no-lines-list.html b/demos/list/no-lines-list.html index 734b743271..088124fac6 100644 --- a/demos/list/no-lines-list.html +++ b/demos/list/no-lines-list.html @@ -1,9 +1,9 @@ - + No-lines List diff --git a/demos/list/sliding-items.html b/demos/list/sliding-items.html index 5158570b9a..8b7234cf80 100644 --- a/demos/list/sliding-items.html +++ b/demos/list/sliding-items.html @@ -1,9 +1,9 @@ - + Sliding Items diff --git a/ionic/components/menu/menu-toggle.ts b/ionic/components/menu/menu-toggle.ts index 6f1fdb3e35..2bdfdfe4a6 100644 --- a/ionic/components/menu/menu-toggle.ts +++ b/ionic/components/menu/menu-toggle.ts @@ -34,6 +34,11 @@ export class MenuToggle extends Ion { this.app = app; this.viewCtrl = viewCtrl; this.withinNavbar = !!navbar; + + // Deprecation warning + if (this.withinNavbar && elementRef.nativeElement.tagName === 'A') { + console.warn('Menu toggles within a navbar should use Multiple Menus diff --git a/ionic/components/navbar/navbar.ts b/ionic/components/navbar/navbar.ts index 7145a01aa0..833c3fdfae 100644 --- a/ionic/components/navbar/navbar.ts +++ b/ionic/components/navbar/navbar.ts @@ -65,7 +65,7 @@ class ToolbarBackground { selector: 'ion-navbar', template: '
' + - '