Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Fix for disappearing notext icons in IE7/WP7.#2560

Merged
scottjehl merged 3 commits intojquery-archive:masterfrom
Wilto:notext_icons_ie7-wp7
Sep 28, 2011
Merged

Fix for disappearing notext icons in IE7/WP7.#2560
scottjehl merged 3 commits intojquery-archive:masterfrom
Wilto:notext_icons_ie7-wp7

Conversation

@Wilto
Copy link
Contributor

@Wilto Wilto commented Sep 28, 2011

Sorry, accidentally lumped two fixes into this request. Still getting the hang of this “social coding” business, as you guys can probably tell.

Fixes #1230 — Looks like there was an extranious “text-indent: -9999px” set on the buttons themselves, which was causing IE to hide the icons (as they’re inline). Since it doesn’t look like text can possibly exist outside of .ui-btn-text, it should be safe to remove it.
• Slight tweak to styling of buttons with data-iconpos=[top/bottom] — Todd and I noticed that these buttons looked a little off, so I made a quick CSS change to pull the icons and associated text closer to the center of the button.

…indent: -9999px” set on the buttons themselves, which was causing IE to hide the icons (as they’re inline). Since it doesn’t look like text can possibly exist outside of .ui-btn-text, it should be safe to remove it.
@scottjehl
Copy link

Nice goin' Mat. Pulling.

scottjehl pushed a commit that referenced this pull request Sep 28, 2011
Fix for disappearing notext icons in IE7/WP7.
@scottjehl scottjehl merged commit 79708df into jquery-archive:master Sep 28, 2011
@Sumeruter
Copy link

This fix introduces a new bug, because now a button with data-iconpos="notext" and class="ui-btn-right" shows as icon button AND text button on screens greater than 999px. To solve this problem change .ui-btn-icon-notext .ui-btn-text { position: absolute; left: -999px; } to the value -9999px (like it was with the text-indent).

Wilto added a commit to Wilto/jquery-mobile that referenced this pull request Oct 11, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows Phone 7 : icon-only buttons aren't showing up

3 participants