Skip to content

Commit

Permalink
(less) Fixes twbs#10903 and twbs#10457: IE8-9 don't support events on…
Browse files Browse the repository at this point in the history
… elements without background-color, so we have to hack it
  • Loading branch information
mdo committed Oct 20, 2013
1 parent 5d539d0 commit b8a1e60
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions carousel.less
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,17 @@
border: 1px solid @carousel-indicator-border-color;
border-radius: 10px;
cursor: pointer;

// IE8-9 hack for event handling
//
// Internet Explorer 8-9 does not support clicks on elements without a set
// `background-color`. We cannot use `filter` since that's not viewed as a
// background color by the browser. Thus, a hack is needed.
//
// For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
// set alpha transparency for the best results possible.
background-color: #000 \9; // IE8
background-color: rgba(0,0,0,0); // IE9
}
.active {
margin: 0;
Expand Down

0 comments on commit b8a1e60

Please sign in to comment.