Answer the question
In order to leave comments, you need to log in
How to solve crossbrowser issue when applying angular5 component modifiers in IE10+?
Good afternoon everyone, guys, I encountered such a question about the cross-browser layout of application components in Angular 5, modifiers for a component in IE11 do not work modifier
layout:
:host(.--green button) {
color: white;
background-color: $clPrimarySecond;
border-color: $clPrimaryThird;
&:hover {
background-color: $clPrimaryThird;
}
&:active {
border-top-color: $clPrimaryThird !important;
border-left-color: $clPrimaryThird !important;
}
/* Includes Themes Styles */
@include mail-theme($themes) {
background-color: use('clPrimaryMain');
border-color: use('clPrimaryThird');
&:hover {
background-color: use('clPrimaryThird');
}
&:active {
border-top-color: use('clPrimaryThird') !important;
border-left-color: use('clPrimaryThird') !important;
}
}
/* themes end*/
}
:host {
&.--green button {}
}
//----
:host(.--green) button{}
//----
:host-context(.--green) button{}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question