GTBitsOfGood / bog-component-library

A reusable, easily readable, easily integrated, and widely used component library for Bits of Good.
https://bog-component-library.netlify.app/
1 stars 0 forks source link

feature(tooltip): Tooltip component #68

Closed therealsharath closed 2 years ago

therealsharath commented 2 years ago

Description

Closes https://github.com/GTBitsOfGood/bog-component-library/issues/44

Adds the tooltip component.

Type of change

🆕 Feature

How to Test

Running the yarn command and checking the component on the storybook UI

Checklist

netlify[bot] commented 2 years ago

✔️ Deploy Preview for bog-component-library ready!

🔨 Explore the source changes: 69cc306d14fb90ef1b11512227e1476aba2b2d6d

🔍 Inspect the deploy log: https://app.netlify.com/sites/bog-component-library/deploys/620449268c63940008ee21bd

😎 Browse the preview: https://deploy-preview-68--bog-component-library.netlify.app

therealsharath commented 2 years ago

Everything else looks good to me! All good to 🚢 once you get the designer(s)' approval 🥳

alysonlam commented 2 years ago

Hi, could you adjust the way the box behaves in response to the text? Ideally, you should also be able to lock/set the width of the box (excluding the arrow I suppose) so that the text can wrap.

alysonlam commented 2 years ago

Also, sorry the capitalized version should not be orange but midnight 500 I believe.

alysonlam commented 2 years ago

Text wrapping looks good, however, I think you still need to be able to set the width of the tooltip. Also, the capitalized text should be using the Visby font (extraBold, size 8)

jade-law commented 2 years ago

Text wrapping looks good, however, I think you still need to be able to set the width of the tooltip. Also, the capitalized text should be using the Visby font (extraBold, size 8)

I'm pretty sure the width can be over written without needing to be passed in.