Skip to content

Commit

Permalink
style(wc:tooltip): 🎨 Match Finastra's tooltip branding (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcldvd authored May 18, 2022
1 parent 5e43ca1 commit a6e5858
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 44 deletions.
24 changes: 8 additions & 16 deletions themes/tippy.js/dist/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion themes/tippy.js/dist/theme.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 16 additions & 27 deletions themes/tippy.js/theme.scss
Original file line number Diff line number Diff line change
@@ -1,31 +1,20 @@
@use '@finastra/fds-theme' as fds;

$color: primary;
$color: rgba(0,0,0,0.54);

.tippy-box[data-theme~='finastra'] {
@include fds.bg-color($color);

&[data-placement^='top'] > .tippy-arrow::before {
@include fds.property(border-top-color, $color);
}

&[data-placement^='bottom'] > .tippy-arrow::before {
@include fds.property(border-bottom-color, $color);
}

&[data-placement^='left'] > .tippy-arrow::before {
@include fds.property(border-left-color, $color);
}

&[data-placement^='right'] > .tippy-arrow::before {
@include fds.property(border-right-color, $color);
}

> .tippy-backdrop {
@include fds.bg-color($color);
}

> .tippy-svg-arrow {
@include fds.fill($color);
}
}
background-color: $color;
@include fds.text-color(text-high-on-dark);

.tippy-arrow::before {
display: none;
}

> .tippy-box-backdrop {
background-color: $color;
}

> .tippy-box-svg-arrow {
fill: transparent;
}
}

0 comments on commit a6e5858

Please sign in to comment.