ClassyKit / Classy

Expressive, flexible, and powerful stylesheets for UIView and friends.
http://classykit.github.io/Classy/
MIT License
740 stars 76 forks source link

UIBarButtonItems not styled deeper than 1 into navigation stack #101

Open a13xb opened 9 years ago

a13xb commented 9 years ago

With this view controller hierarcy:

UINavigationController
    UITableViewController A: table with static cells, tap pushes B onto the stack
        UIBarButtonItem A1
        UIBarButtonItem A2
    UIViewController B
        UIBarButtonItem B1
        UIBarButtonItem B2

Stylesheet:

UIBarButtonItem
    title-text-attributes[state:normal] @
        font HelveticaNeue-Italic 30
        foreground-color red

In view controller A buttons A1 and A2 appear to be properly styled, when you move to view controller B, the style of B1 (back button) and B2 reverts to default.