From b17419879cc6dcf4b6e80358108d37506dd1a4ab Mon Sep 17 00:00:00 2001 From: Marie JONES Date: Wed, 7 Nov 2018 16:56:58 +0100 Subject: [PATCH] feat(oui-navbar): allow to animate icon on aside links --- packages/oui-navbar/README.md | 4 ++++ .../oui-navbar/src/dropdown/navbar-dropdown.component.js | 1 + packages/oui-navbar/src/dropdown/navbar-dropdown.html | 6 ++++-- packages/oui-navbar/src/index.spec.data.json | 1 + packages/oui-navbar/src/index.spec.js | 6 ++++++ packages/oui-navbar/src/navbar.html | 1 + 6 files changed, 17 insertions(+), 2 deletions(-) diff --git a/packages/oui-navbar/README.md b/packages/oui-navbar/README.md index f90107e8..26d6dca1 100644 --- a/packages/oui-navbar/README.md +++ b/packages/oui-navbar/README.md @@ -349,6 +349,7 @@ It defines the menu in reponsive mode. It will be visible only for screen resolu This property is only available for root links of `aside-links`. - `iconClass`: define `class` of the menu item icon. +- `iconAnimated`: define if the menu item icon should be animated ```json [{ @@ -357,6 +358,7 @@ This property is only available for root links of `aside-links`. "label": String, "title": String, "iconClass": String, + "iconAnimated": Boolean, "subLinks": Array[{ "label": String, "title": String, @@ -379,6 +381,7 @@ This property is only available for root links of `aside-links`. acknowledged: '!true' }).length" icon-class="{{asideLink.iconClass}}" + icon-animated="asideLink.name === 'notifications'" on-click="asideLink.onClick" ng-repeat="asideLink in $ctrl.asideLinks track by $index" ng-class="asideLink.class" @@ -548,6 +551,7 @@ The property `name` **must be** `"user"`. | `text` | string | @ | yes | n/a | n/a | text of the button | `aria-label` | string | @? | yes | n/a | n/a | accessibility label of the button | `icon-class` | string | @? | yes | n/a | n/a | classname of the button icon +| `icon-animated` | boolean | -