Skip to main content

Search and Top Navigation

#5254 closed bug (wontfix)

Opened March 02, 2010 09:31AM UTC

Closed February 19, 2014 07:30PM UTC

Input, button and anchor buttons aren't consistent in IE7

Reported by: misterdai Owned by:
Priority: major Milestone: 1.11.0
Component: ui.button Version: 1.8rc3
Keywords: button styling Cc:
Blocked by: Blocking:
Description

In IE7 the input/button/anchor versions of a UI button are too varied when it comes to height and positioning. Please see the attached image.

http://jqueryui.com/demos/button/#default

Attachments (1)
  • button.png (3.5 KB) - added by misterdai March 02, 2010 09:31AM UTC.

    Example of varied button appearances.

Change History (16)

Changed March 03, 2010 05:42PM UTC by rdworth comment:1

priority: minorcritical

Changed March 04, 2010 02:01PM UTC by rdworth comment:2

summary: Input, button and anchor buttons aren't consistentInput, button and anchor buttons aren't consistent in IE7

Changed October 19, 2010 03:38PM UTC by scottgonzalez comment:5

priority: criticalmajor

Changed May 13, 2011 10:52PM UTC by davidmurdoch comment:6

Changed June 13, 2011 03:14PM UTC by fg.maggie comment:7

Replying to [comment:6 davidmurdoch]:

Fixed in https://github.com/jquery/jquery-ui/pull/273

As noted in git, I don't think this fix is necessary. I'm also not sure why this was ever marked as a critical bug? :) The differences between these buttons are negligible, and are noticeable only when they sit right next to each other -- is that a realistic use case? If the problem is how the buttons appear on the demo page, let's use a more realistic example on the demo page instead of incorporating a slew of hacks into the CSS for an edge case.

Changed July 08, 2011 03:33AM UTC by bmsterling comment:8

I agree that this is not a fix that is needed. I am currently using the buttons within a modal where we have a "cancel" and "confirm" button that sit next to each other and they work well.

Changed August 28, 2011 01:29AM UTC by straussm comment:9

One way to fix this inconsistency with no CSS hacks would be to override the original element with a new one. That way, no matter what element is declared, it will produce the same HTML. The new element can be added immediately after the original, and the original can be hidden. On removal, just remove the created element and show the original.

Changed September 01, 2011 11:34AM UTC by kidsysco comment:10

I do think a fix is needed but I am not sure there is one. These buttons do not work consistantly in IE 7. I have run into several examples of the behavior being posted here and I would be happy to provide more examples of goofy IE7 behavior if anyone thinks it would help. The biggest most glaring example being the jQuery UI documentation/demo page for the buttons that does not work properly when using IE7. View it in any other browser, everything snaps into its correct position.

Changed September 01, 2011 11:36AM UTC by kidsysco comment:11

Replying to [comment:9 straussm]:

One way to fix this inconsistency with no CSS hacks would be to override the original element with a new one. That way, no matter what element is declared, it will produce the same HTML. The new element can be added immediately after the original, and the original can be hidden. On removal, just remove the created element and show the original.

This is an interesting idea because I have seen differences in the way that IE 7 treats a div with the button() call on it and a button with the button() call on it. I have different results based on how its being used but in at least one case, things work better calling button() on a div tag than a button tag.

Changed January 07, 2012 05:39PM UTC by scoulibaly comment:12

I'm clearly in a case where I need Cancel / Delete buttons close to each other. This is ugly, whatever the browser. This is not to me a strange use case (please, have a look at Google Mail buttons layout for example) and should be fixed.

Changed January 11, 2012 02:12PM UTC by misterdai comment:13

I'm still of the opinion that this needs to be fixed or a different approach taken. The idea of replacing / overlaying a div structured button is an interesting one, but I'm unsure about the accessibility issues that might be at play. If we definitely need to retain the input / button / a element, is it possible to involve an additional element to make standardisation across browsers easier?

Do any other styles in jQueryUI require additional effort for certain browsers?

Changed February 27, 2012 11:57AM UTC by jzaefferer comment:14

milestone: 1.91.next
status: newopen

We'll address this as part of the rewrite, following the jQuery Mobile approach, which avoids styling all these elements consistently and instead just wraps the native element in a generic, styled element.

Changed October 03, 2012 03:45PM UTC by scottgonzalez comment:15

milestone: 1.next1.11.0

Changed February 19, 2014 07:30PM UTC by scottgonzalez comment:16

resolution: → wontfix
status: openclosed

We're no longer landing bug fixes for IE7 and will fully drop support soon.