mozilla-b2g/gaia — pull request #5680 by fabi1cazenave (2012-10-04 15:05:31+00:00)
Title: [BB-buttons] simplify .icon-[view|dialog] markup

Here’s a proposal to ease the use of `.icon-view` and `.icon-dialog` buttons: instead of relying on an empty `` element, the icon is applied to the `` itself.

This implies to make “disabled” versions of the PNG icons: `view-disabled.png` and `dialog-disabled.png`, both being the dimmed versions of the original view/dialog icons (= 20% opacity).

I think it’s worth the trouble because it makes the markup easier for basic cases, and compatible with more complex cases (e.g. when a `` element needs a child `` element for something else). This part of the BB isn’t used in any app yet so this change should be transparent for the moment.

@rnowm @basiclines let me know what you think.