From 2f32ecc15acdf90c3253c5b3fcfd1d9683522c65 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Fri, 9 Feb 2018 22:41:30 -0500 Subject: [PATCH] docs(breaking): update breaking changes to include item sliding markup --- BREAKING.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/BREAKING.md b/BREAKING.md index e2ac3d26b3..3e1c997dbf 100644 --- a/BREAKING.md +++ b/BREAKING.md @@ -470,6 +470,40 @@ The `menuToggle` attribute should not be added to an element anymore. Elements t ## Item Sliding +### Markup Changed + +The option component should not be written as a `button` with an `ion-button` directive anymore. It should be written as an `ion-item-option`. This will render a native button element inside of it. + +**Old Usage Example:** + +```html + + + Item 1 + + + + + +``` + +**New Usage Example:** + +```html + + + Item 1 + + + + + + + +``` + ### Method Renamed The `getSlidingPercent` method has been renamed to `getSlidingRatio` since the function is returning a ratio of the open amount of the item compared to the width of the options.