data-iconpos='none' in select menu #4028

Closed
cremark opened this Issue Apr 13, 2012 · 6 comments

Projects

None yet

5 participants

@cremark
cremark commented Apr 13, 2012

Is data-iconpos='none' in the select menu still possible? Docs @ http://jquerymobile.com/demos/1.1.0-rc.2/docs/api/data-attributes.html say it is not!

I am asking because it is rendering incorrectly: http://jsfiddle.net/BGuCW/1/

After adding

.ui-btn-icon-none .ui-btn-inner .ui-icon {
    display: none;
}

it renders correctly.

@MauriceG
Contributor

if I use: data-icon="false", no icon is shown.

http://jsfiddle.net/MauriceG/BGuCW/2/

@cremark
cremark commented Apr 13, 2012

Indeed, thanks!

data-icon="false" should be added in the documentation.

@cremark cremark closed this Apr 13, 2012
@cremark
cremark commented Apr 13, 2012

should this be reopened and put under the label docs?

@MauriceG
Contributor

May it's not a supported solution.

@cremark cremark reopened this Apr 13, 2012
@agcolom
Member
agcolom commented Apr 16, 2012

@toddparker this one can be closed as fixed. the comment from #4049 didn't close it automatically

@toddparker toddparker closed this Apr 16, 2012
@dericcrago
Contributor

I feel that this isn't completely "fixed", while adding data-icon="false" removes the icon, it doesn't remove the padding, adding data-inline="true" shows this. jsfiddle

Adding data-icon="false" data-iconpos="none" fixes this, but data-iconpos="none" is really only removing the padding because it isn't recognized anymore. For example, adding data-iconpos='blahblahblah' yields the same results. jsfiddle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment