increase specifity of button style overrides on notifications (#9427)

feature/default_network_editable
Brad Decker 4 years ago committed by GitHub
parent feeacc580d
commit f4a2a09713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/app/components/app/home-notification/home-notification.component.js
  2. 16
      ui/app/components/app/home-notification/index.scss
  3. 34
      ui/app/components/ui/info-tooltip/index.scss
  4. 2
      ui/app/components/ui/info-tooltip/info-tooltip.js

@ -66,7 +66,7 @@ export default class HomeNotification extends PureComponent {
animation="none" animation="none"
position="top" position="top"
arrow arrow
theme="info" theme="tippy-tooltip-home"
> >
<img <img
alt="" alt=""

@ -1,7 +1,11 @@
.tippy-tooltip.info-theme { .tippy-tooltip {
background: rgba(36, 41, 46, 0.9); // This looks weird, but its repeating the class name
color: $white; // using interpolation for higher specificity.
border-radius: 8px; &#{&}-home-theme {
background: rgba(36, 41, 46, 0.9);
color: $white;
border-radius: 8px;
}
} }
.home-notification { .home-notification {
@ -47,7 +51,7 @@
color: #6a737d; color: #6a737d;
} }
&__ignore-button { & &__ignore-button {
border: 2px solid #6a737d; border: 2px solid #6a737d;
box-sizing: border-box; box-sizing: border-box;
border-radius: 6px; border-radius: 6px;
@ -71,7 +75,7 @@
} }
} }
&__accept-button { & &__accept-button {
border: 2px solid #6a737d; border: 2px solid #6a737d;
box-sizing: border-box; box-sizing: border-box;
border-radius: 6px; border-radius: 6px;

@ -5,35 +5,37 @@
} }
} }
.tippy-popper[x-placement^=top] .info-theme [x-arrow] { .tippy-popper[x-placement^=top] .tippy-tooltip-info-theme [x-arrow] {
border-top-color: $white; border-top-color: $white;
} }
.tippy-popper[x-placement^=right] .info-theme [x-arrow] { .tippy-popper[x-placement^=right] .tippy-tooltip-info-theme [x-arrow] {
border-right-color: $white; border-right-color: $white;
} }
.tippy-popper[x-placement^=left] .info-theme [x-arrow] { .tippy-popper[x-placement^=left] .tippy-tooltip-info-theme [x-arrow] {
border-left-color: $white; border-left-color: $white;
} }
.tippy-popper[x-placement^=bottom] .info-theme [x-arrow] { .tippy-popper[x-placement^=bottom] .tippy-tooltip-info-theme [x-arrow] {
border-bottom-color: $white; border-bottom-color: $white;
} }
.tippy-tooltip.info-theme { .tippy-tooltip {
background: white; &#{&}-info-theme {
color: black; background: white;
box-shadow: 0 0 14px rgba(0, 0, 0, 0.18); color: black;
border-radius: 8px; box-shadow: 0 0 14px rgba(0, 0, 0, 0.18);
max-width: 203px; border-radius: 8px;
padding: 16px; max-width: 203px;
padding-bottom: 15px; padding: 16px;
padding-bottom: 15px;
.tippy-tooltip-content { .tippy-tooltip-content {
@include H8; @include H8;
text-align: left; text-align: left;
color: $Grey-500; color: $Grey-500;
}
} }
} }

@ -22,7 +22,7 @@ export default function InfoTooltip ({
tooltipInnerClassName="info-tooltip__tooltip-content" tooltipInnerClassName="info-tooltip__tooltip-content"
tooltipArrowClassName={positionArrowClassMap[position]} tooltipArrowClassName={positionArrowClassMap[position]}
html={contentText} html={contentText}
theme="info" theme="tippy-tooltip-info"
> >
<img src="images/mm-info-icon.svg" /> <img src="images/mm-info-icon.svg" />
</Tooltip> </Tooltip>

Loading…
Cancel
Save