Skip to content

Commit

Permalink
fix(datepicker): visual focus on arrows for ie (#2818)
Browse files Browse the repository at this point in the history
Closes #2818
  • Loading branch information
fbasso authored and Benoit Charbonnier committed Nov 5, 2018
1 parent aca4cbe commit b20355e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/datepicker/datepicker-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ ngb-datepicker-navigation {
margin-right: 0.15em;
transform: rotate(-135deg);
}

.right &-navigation-chevron {
transform: rotate(45deg);
margin-left: 0.15em;
margin-right: 0.25em;
}

&-arrow {
display: flex;
flex: 1 1 auto;
Expand All @@ -31,7 +33,9 @@ ngb-datepicker-navigation {
&.right {
justify-content: flex-end;
}

}

&-arrow-btn {
padding: 0 0.25rem;
margin: 0 0.5rem;
Expand All @@ -40,15 +44,25 @@ ngb-datepicker-navigation {
z-index: 1;

&:focus {
outline: auto 1px;
outline-width: 1px;
outline-style: auto;
}

// IE workaround, as outline-style: auto doesn't work
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
&:focus {
outline-style: solid;
}
}
}

&-month-name {
font-size: larger;
height: 2rem;
line-height: 2rem;
text-align: center;
}

&-navigation-select {
display: flex;
flex: 1 1 9rem;
Expand Down

0 comments on commit b20355e

Please sign in to comment.