Skip to content

Commit

Permalink
Hide the close element to prevent overlay of other elements in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
drublic committed Jan 7, 2015
1 parent 673a756 commit 0631b4d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## HEAD
* Hide the close element to prevent overlay of other elements in IE
* Remove close handler to unset window
* Include a build of the spinner CSS
* Include a modal--fade by default to the output
* Bugfix: Use jQuery to subscribe to events to prevent errors with trigger
Expand Down
6 changes: 6 additions & 0 deletions _modal-core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ html {
&.is-active {
width: 100%;
height: 100%;

// For IE we need to hide the close element to prevent overlay of other elements
.modal-close {
display: block;
}
}

.modal-inner {
Expand Down Expand Up @@ -221,6 +226,7 @@ html {
}

.modal-close {
display: none;

This comment has been minimized.

Copy link
@ixisio

ixisio Jan 7, 2015

Nice, thanks Sir! Fixed for me!

This comment has been minimized.

Copy link
@drublic

drublic Jan 7, 2015

Author Owner

👍

right: auto;

&:before {
Expand Down
3 changes: 3 additions & 0 deletions build/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ html {
.modal--fade:target, .modal--show:target, .is-active.modal--fade, .is-active.modal--show {
width: 100%;
height: 100%; }
.modal--fade:target .modal-close, .modal--show:target .modal-close, .is-active.modal--fade .modal-close, .is-active.modal--show .modal-close {
display: block; }
.modal--fade .modal-inner, .modal--show .modal-inner {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
Expand All @@ -159,6 +161,7 @@ html {
-moz-hyphens: auto;
hyphens: auto; }
.modal--fade .modal-close, .modal--show .modal-close {
display: none;
right: auto; }
.modal--fade .modal-close:before, .modal--show .modal-close:before {
content: '';
Expand Down

0 comments on commit 0631b4d

Please sign in to comment.