-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(item): Create .icon-accessory and remove auto nav icons, closes
#1061 BREAKING CHANGE: The developer should be stating exactly how an icon should show, but previously the right nav arrow icon violates this by automatically showing a right arrow when an item was an anchor or button. Instead of using the `:after` item selector, which was always applied by default, it uses the same markup as `item-icon-right`, which is easier to understand, customizable and not a hard coded default. This change removes the `:after` nav icon styling, and creates a new class, `icon-accessory`, based off of similar CSS. The change makes a nav arrow highly customizable, allows RTL developers to easily control the arrow direction, and the accessory class is something that's reusable. An example of right side arrow using `ion-chevron-right` as the icon: <a class="item item-icon-right" href="#"> Check mail <i class="icon ion-chevron-right icon-accessory"></i> </a>
- Loading branch information
1 parent
518e54e
commit c7e3def
Showing
3 changed files
with
40 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c7e3def
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you update the docs when you get a chance, http://ionicframework.com/docs/components/#list -- it was confusing that the simulator/screenshots show the disclosure indicator.
c7e3def
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to agree with Damienleri. I was also confused by the documentation here... http://ionicframework.com/docs/components/#item-icons
The documentation still says that the ion-chevron-right icon will automatically show up if no other icon is specified. Also, the demo at http://plnkr.co/edit/qYMCrt?p=preview is referencing 1.0.0-beta.1 which makes this whole situation even more confusing.