Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihor Arkhypenko authored and Ihor Arkhypenko committed Feb 11, 2020
1 parent 7254b1a commit f173e69
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions src/__mocks__/popper.js.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { placements } from '@popperjs/core';

// eslint-disable-next-line import/no-default-export
export default class Popper {
static placements = placements;

constructor() {
return {
destroy: () => {},
Expand Down
9 changes: 0 additions & 9 deletions src/components/Tooltip/Tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
}

[data-popper-placement^="top"] & {
margin-bottom: var(--spacing-5x);
transform: translateY(-20px);
}
[data-popper-placement^="top"] &__arrow {
Expand All @@ -22,8 +21,6 @@
border-right: 6px solid transparent;
bottom: -6px;
left: calc(50% - 6px);
margin-top: 0;
margin-bottom: 0;
}
[data-popper-placement^="top-start"] &__arrow {
left: var(--spacing-3x);
Expand All @@ -42,8 +39,6 @@
border-right: 6px solid transparent;
top: -6px;
left: calc(50% - 6px);
margin-top: 0;
margin-bottom: 0;
}
[data-popper-placement^="bottom-start"] &__arrow {
left: var(--spacing-3x);
Expand All @@ -62,8 +57,6 @@
border-right: 6px solid var(--color-neutral-90);
left: -6px;
top: calc(50% - 6px);
margin-left: 0;
margin-right: 0;
}
[data-popper-placement^="right-start"] &__arrow {
top: var(--spacing-3x);
Expand All @@ -82,8 +75,6 @@
border-left: 6px solid var(--color-neutral-90);
right: -6px;
top: calc(50% - 6px);
margin-left: 0;
margin-right: 0;
}
[data-popper-placement^="left-start"] &__arrow {
top: var(--spacing-3x);
Expand Down

0 comments on commit f173e69

Please sign in to comment.