Skip to content

Commit

Permalink
fix(theme): fix tooltip styling & transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
dackmin committed Nov 16, 2022
1 parent 2c580f4 commit c93cb7b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
7 changes: 7 additions & 0 deletions packages/react/lib/Tooltip/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { action } from '@storybook/addon-actions';
import { slideInDownMenu } from '@junipero/transitions';

import Tooltip from './index';

Expand All @@ -15,3 +16,9 @@ export const click = () => (
Click me
</Tooltip>
);

export const animated = () => (
<Tooltip text="Text" animate={slideInDownMenu} onToggle={action('toggle')}>
Hover me
</Tooltip>
);
15 changes: 8 additions & 7 deletions packages/theme/lib/Tooltip.sass
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
--background-color: var(--junipero-onyx)
--text-color: var(--junipero-seashell)

background: var(--background-color)
border-radius: 8px
padding: 5px 20px
display: flex
color: var(--text-color)
pointer-events: none
max-width: 250px
.tooltip-inner
background: var(--background-color)
border-radius: 8px
padding: 5px 20px
display: flex
color: var(--text-color)
pointer-events: none
max-width: 250px

0 comments on commit c93cb7b

Please sign in to comment.