Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

fix(list): fix compatibility with IE11 #7573

Closed
wants to merge 1 commit into from

Conversation

devversion
Copy link
Member

  • Added a mixin / workaround for the flexbox bug for Internet Explorer 11.

The most common problems in the list component are now fixed, so the only missing fix for now is the compatibility with IE11. So that means we should test this thoroughly.

PS: I decided, not to make this mixin generic, because the use-cases for the min-height flexbug are really rarely.

Fixes #7557.

@ThomasBurleson Please take a look as well.

* Added a mixin / workaround for the flexbox bug for Internet Explorer 11.

Fixes angular#7557.
@devversion devversion added needs: review This PR is waiting on review from the team ui: flexbox labels Mar 15, 2016
&::before {
content: '';
min-height: $min-height;
visibility: hidden;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What element is this hiding?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pseudo element, which sets our height. This is our actual workaround. IE11 now thinks, that the actual button container has a fixed height, but behind the scenes (::before pseudo) it still has a min-height.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice that we have a /core/services/layout/ie_fixes.css. These are appended to the /dist/angular-material.css contents as raw css.

Perhaps we should add this ^^ (as CSS instead of scss) to that file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I don't think that's a good idea. It should be located in the list component, since the component can be exported as a (Closure)-/ Module.

In addition to that, it will require much modifying, whenever we change a height of the list.
Imagine, I need to export four fixed CSS selectors, which have a min-height property, which should be easy to change.

Also it's not really an IE fix, it's rather a workaround.

@devversion devversion deleted the fix/list-ie11-flexbug branch April 19, 2016 19:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team ui: flexbox
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Padding on item-list with ng-click wrong on ie 11
3 participants