Better handling of iconpos on navbars #5374
Description
Currently, the icon position for every button in a navbar must be in the same position. This seems clunky and it is unnecessary to have this restriction. The current CSS can render a mixture of left
, right
and not set, or top
and bottom
, perfectly well without any changes. The attached images show the result of manually switching and removing ui-btn-icon-*
classes in the DOM.
The enhancement functions could be changed to allow such overrides per navbar item. A little extra CSS you could even have a mix of horizontal and vertical positions, though I can't imagine that looking very good.
Even if this improvement is not implemented, it would be good if the classes ui-btn-icon-right
or ui-btn-icon-left
were not added to items that have no icon. The classes make the text-only buttons look misaligned because of the extra padding.