White border seen almost at the top of button with iconpos='notext' #3613

gabrielschulhof opened this Issue Feb 20, 2012 · 4 comments


None yet

3 participants


<a data-role='button' data-iconpos='notext'></a> generates a nice, circular button suitable for all kinds of widgets. Unfortunately, the span.ui-btn-inner inside the anchor adds a 1px white border, which becomes compressed to the top of the button, causing a white line to be tangent to the button at the top.


This line is visible with multiple swatches (tried a, c, and e)


My solution was this:

    #my-button .ui-btn-inner {
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        height: 100%;

Not sure if this is generally applicable though.

@Wilto Wilto was assigned Feb 22, 2012

@wilto - mind taking a look at this? Feel like you've fixed this in some cases already.


Here's where I'm using that.

Wilto commented Feb 29, 2012

Ah, I see the issue—the highlight styling is busted on that inner element. If I override it to red:

The version on the right, obviously, is how it should be—I’ll patch that up now. In terms of removing that highlight altogether, you should be able to override it in your stylesheets by declaring:

.ui-btn-icon-notext .ui-btn-inner { border-top: none; }

@Wilto Wilto added a commit that referenced this issue Feb 29, 2012
@Wilto Wilto Addresses comments in issue #3613 — Inner highlight in buttons now co…
…rrectly follow the border radius of the button.
@Wilto Wilto closed this Feb 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment