From b4854eac87dd896d67b5ed299549edb7124e4077 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Thu, 1 Feb 2018 12:21:51 -0500 Subject: [PATCH] docs(breaking): add breaking changes for menu toggle --- BREAKING.md | 59 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 55 insertions(+), 4 deletions(-) diff --git a/BREAKING.md b/BREAKING.md index 036fdc0813..771e7b973e 100644 --- a/BREAKING.md +++ b/BREAKING.md @@ -15,6 +15,7 @@ A list of the breaking changes introduced in Ionic Angular v4. - [Item](#item) - [Item Divider](#item-divider) - [List Header](#list-header) +- [Menu Toggle](#menu-toggle) - [Nav](#nav) - [Option](#option) - [Radio](#radio) @@ -442,6 +443,60 @@ Previously an `ion-label` would automatically get added to an `ion-list-header` ``` +## Menu Toggle + +### Markup Changed + +The `menuToggle` attribute should not be added to an element anymore. Elements that should toggle a menu should be wrapped in an `ion-menu-toggle` element. + +**Old Usage Example:** + +```html + +``` + +**New Usage Example:** + +```html + + + Toggle Menu + + +``` + +#### Toolbar + +Previously if a `menuToggle` directive was added to an Ionic `button` in a toolbar, it would be positioned outside of the `ion-buttons` element. Since menu toggle is simply a wrapper to a button now, it should be placed inside of the `ion-buttons` element. + +**Old Usage Example:** + +```html + + + Left side menu toggle + +``` + +**New Usage Example:** + +```html + + + + + + + + + Left side menu toggle + +``` + ## Nav ### Method renamed @@ -572,10 +627,6 @@ Radio group has been changed to an element. It should now be wrapped around any ``` -### Windows Mode Order - -Previously a radio inside of an item in Windows Platform mode would align itself to the start of the item. This has been removed, `slot` should always be used to align a radio inside of an item now. - ## Range