Code Monkey home page Code Monkey logo

Comments (4)

hxltrhuxze avatar hxltrhuxze commented on May 31, 2024

Tooltip Component

The tooltip component is a simple component that can either have a single paragraph of text or a title and paragraph.
Screenshot 2019-08-27 at 16 17 43

Screenshot 2019-09-12 at 12 25 31

Interactions

When hovering on a Tooltip Trigger, the tooltip will fade in towards the trigger. For example, if the tooltip is situated above the Trigger, hovering on the trigger will cause the tooltip to fade from 0% opacity to 100% opacity, and transition downwards, towards the trigger.

Abstract link

https://share.goabstract.com/b8bdd9f7-b588-4a3f-9c09-a3fa996963aa?sha=88831705e7ef8db1cb8119e01d2bcabfdc03bd24

from design-system.

xdobtqletrmn avatar xdobtqletrmn commented on May 31, 2024

These probably don't affect sign-off, but:

  • Will it ever be a different colour (or only if we do dark mode)?
  • Will it ever contain more than plain text (a link for example). If not, I'd guess it would be useful in the docs to suggest what component should be used to provide richer text.

from design-system.

hxltrhuxze avatar hxltrhuxze commented on May 31, 2024

@xdobtqletrmn

  • I've kept them dark as this is generally the accepted look for tooltips as the contrast between our light mode and the tooltip helps to make it stand out
  • Tooltips should only be used to add additional info that is in plain text - they can't be hovered on themselves as only the (i) icon has the hover target. The Popover component is planned to allow extra features including links and images, so when we have that we'll navigate users to that component in the docs.

from design-system.

xdobtqletrmn avatar xdobtqletrmn commented on May 31, 2024

tooltip vs popover 🤦‍♂ 😄

from design-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.