Skip to content

Commit

Permalink
Merge pull request #7 from YIZHUANG/add-support-for-ie-11-and-ie-10
Browse files Browse the repository at this point in the history
Added support for IE11 and IE10
  • Loading branch information
yi authored Apr 5, 2019
2 parents c72d741 + b53c280 commit 993b5c4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/CarouselItems.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/CarouselItems.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions lib/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,12 @@
.react-multi-carousel-dot--active button {
background: #080808;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.react-multi-carousel-item {
flex-shrink: 0 !important;
}
.react-multi-carousel-track {
overflow: visible !important;
}
}
4 changes: 2 additions & 2 deletions src/CarouselItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const CarouselItems = ({ props, state }:CarouselItemsProps):any => {
}px`
: "auto"
}}
className={itemClass}
className={`react-multi-carousel-item ${itemClass}`}
>
{child}
</li>
Expand All @@ -64,7 +64,7 @@ const CarouselItems = ({ props, state }:CarouselItemsProps):any => {
}px`
: "auto"
}}
className={itemClass}
className={`react-multi-carousel-item ${itemClass}`}
>
{child}
</li>
Expand Down
9 changes: 9 additions & 0 deletions src/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,12 @@
.react-multi-carousel-dot--active button {
background: #080808;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.react-multi-carousel-item {
flex-shrink: 0 !important;
}
.react-multi-carousel-track {
overflow: visible !important;
}
}

0 comments on commit 993b5c4

Please sign in to comment.