|
@@ -4,6 +4,8 @@
|
|
|
|
|
|
|
|
|
$module: #{$prefix}-tabs;
|
|
|
+// Prevent the Radio and Checkbox in ReactNode passed in through the tab attribute in Tabs from being affected by the icon style override
|
|
|
+$ignoreIcon: '.#{$prefix}-icon-checkbox_tick, .#{$prefix}-icon-radio, .#{$prefix}-icon-checkbox_indeterminate';
|
|
|
|
|
|
.#{$module} {
|
|
|
box-sizing: border-box;
|
|
@@ -41,7 +43,7 @@ $module: #{$prefix}-tabs;
|
|
|
|
|
|
user-select: none;
|
|
|
|
|
|
- .#{$prefix}-icon {
|
|
|
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
|
position: relative;
|
|
|
margin-right: $spacing-tabs_tab_icon-marginRight;
|
|
|
top: $spacing-tabs_tab_icon-top;
|
|
@@ -61,7 +63,7 @@ $module: #{$prefix}-tabs;
|
|
|
&:hover {
|
|
|
color: $color-tabs_tab_line_default-text-hover;
|
|
|
|
|
|
- .#{$prefix}-icon {
|
|
|
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
|
color: $color-tabs_tab-icon-hover;
|
|
|
}
|
|
|
}
|
|
@@ -69,7 +71,7 @@ $module: #{$prefix}-tabs;
|
|
|
&:active {
|
|
|
color: $color-tabs_tab_line_default-text-active;
|
|
|
|
|
|
- .#{$prefix}-icon {
|
|
|
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
|
color: $color-tabs_tab-icon-active;
|
|
|
}
|
|
|
}
|
|
@@ -84,7 +86,7 @@ $module: #{$prefix}-tabs;
|
|
|
font-weight: $font-tabs_tab_active-fontWeight;
|
|
|
color: $color-tabs_tab_line_selected-text-default;
|
|
|
|
|
|
- .#{$prefix}-icon {
|
|
|
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
|
color: $color-tabs_tab_selected-icon-default;
|
|
|
}
|
|
|
|
|
@@ -123,7 +125,7 @@ $module: #{$prefix}-tabs;
|
|
|
|
|
|
user-select: none;
|
|
|
|
|
|
- .#{$prefix}-icon {
|
|
|
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
|
position: relative;
|
|
|
margin-right: $spacing-tabs_tab_icon-marginRight;
|
|
|
top: $spacing-tabs_tab_icon-top;
|
|
@@ -143,7 +145,7 @@ $module: #{$prefix}-tabs;
|
|
|
&:hover {
|
|
|
color: $color-tabs_tab_line_default-text-hover;
|
|
|
|
|
|
- .#{$prefix}-icon {
|
|
|
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
|
color: $color-tabs_tab-icon-hover;
|
|
|
}
|
|
|
}
|
|
@@ -151,7 +153,7 @@ $module: #{$prefix}-tabs;
|
|
|
&:active {
|
|
|
color: $color-tabs_tab_line_default-text-active;
|
|
|
|
|
|
- .#{$prefix}-icon {
|
|
|
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
|
color: $color-tabs_tab-icon-active;
|
|
|
}
|
|
|
}
|
|
@@ -166,7 +168,7 @@ $module: #{$prefix}-tabs;
|
|
|
font-weight: $font-tabs_tab_active-fontWeight;
|
|
|
color: $color-tabs_tab_line_selected-text-default;
|
|
|
|
|
|
- .#{$prefix}-icon {
|
|
|
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
|
color: $color-tabs_tab_selected-icon-default;
|
|
|
}
|
|
|
|