From 10481e09afa2b7c95ae9ef958c56932d6f78b4d5 Mon Sep 17 00:00:00 2001 From: Adrien Denat Date: Thu, 28 Mar 2019 17:50:13 +0000 Subject: [PATCH 1/9] chore(new-ui): basic poc --- .../src/components/Tooltip/Tooltip.tsx | 1 + .../inputs/CurrencySelect/CurrencySelect.tsx | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/packages/new-polymath-ui/src/components/Tooltip/Tooltip.tsx b/packages/new-polymath-ui/src/components/Tooltip/Tooltip.tsx index e7ac08f03..577dfb86f 100644 --- a/packages/new-polymath-ui/src/components/Tooltip/Tooltip.tsx +++ b/packages/new-polymath-ui/src/components/Tooltip/Tooltip.tsx @@ -27,6 +27,7 @@ export class TooltipComponent extends React.Component { title: popover, html: true, container: document.body, + boundariesElement: 'viewport', popperOptions: { modifiers: { setState: { diff --git a/packages/new-polymath-ui/src/components/inputs/CurrencySelect/CurrencySelect.tsx b/packages/new-polymath-ui/src/components/inputs/CurrencySelect/CurrencySelect.tsx index 60d07676b..9783e49c3 100644 --- a/packages/new-polymath-ui/src/components/inputs/CurrencySelect/CurrencySelect.tsx +++ b/packages/new-polymath-ui/src/components/inputs/CurrencySelect/CurrencySelect.tsx @@ -21,6 +21,7 @@ import { SvgPax } from '~/images/icons/pax'; import { withTheme, ThemeInterface, styled } from '~/styles'; import { Box } from '~/components/Box'; import { Icon } from '~/components/Icon'; +import { TooltipPrimary } from '~/components/TooltipPrimary'; import { InputProps } from '~/components/inputs/types'; import { Label } from './Label'; import * as sc from './styles'; @@ -60,6 +61,7 @@ export const CURRENCY_OPTIONS: OptionType[] = [ label: (