Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip Component #14

Open
ergenekonyigit opened this issue Nov 14, 2022 · 0 comments
Open

Tooltip Component #14

ergenekonyigit opened this issue Nov 14, 2022 · 0 comments
Labels
adr Component Adr ready-for-dev Ready for development tooltip Tooltip component

Comments

@ergenekonyigit
Copy link
Member

ergenekonyigit commented Nov 14, 2022

Design

Figma Design Document

Implementation

General usage example:

<Tooltip visible={true} >
   <Icon/>
</Tooltip>

Rules

  • Default positioning for tooltip is on top of the component with 4px padding.
  • Tooltip rearrange itself from its default position to be visible on the screen: Top (Default) and Bottom.
  • The pin of the tooltip is centered on the component it opens.
  • The width of the tooltip depends on the mobile screen size. Use full width with 16px padding from left and right.
  • It is mandatory to use the close button to preserve the meaning of "it can be closed" on mobile devices.
  • Clicking outside the tooltip, scrolling, and pressing the close button closes the tooltip.
  • The tooltip can be opened by clicking on a specific area (component, icon, etc.) or after a certain period of time after the user lands on the screen.
  • There can be text link in the tooltips.
  • Opening a new tooltip immediately closes any other open tooltip.
  • For the rich contents use Modal Component instead Tooltip.
  • If the tooltip cannot be opened in the top position (for example: in the header and title on the page), it can be used in the bottom of the component.
  • Should respect to contribution guideline

API Reference:

Tooltip component

Tooltips display informative text when users hover over, focus on, or tap an element.

Properties

Property Description Default Value
visible (boolean) state of visibility false
onClose (function) close callback -
content (string) message of tooltip content -
@ergenekonyigit ergenekonyigit moved this from No Status to Design Done in Baklava Design System React Native Nov 14, 2022
@ergenekonyigit ergenekonyigit moved this from Ready For Development to ADR in Baklava Design System React Native May 22, 2023
@ergenekonyigit ergenekonyigit moved this from ADR to No Status in Baklava Design System React Native Jun 5, 2023
@gokselpirnal gokselpirnal added adr-required Not ready for development tooltip Tooltip component and removed baklava-ds labels Jun 20, 2023
@buseselvi buseselvi moved this from No Status to In Design in Baklava Design System React Native Nov 28, 2023
@pinarkizilarslan pinarkizilarslan moved this from ADR to Ready For Development in Baklava Design System React Native Dec 19, 2023
@pinarkizilarslan pinarkizilarslan added adr Component Adr ready-for-dev Ready for development and removed adr-required Not ready for development labels Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adr Component Adr ready-for-dev Ready for development tooltip Tooltip component
Projects
Status: Ready For Development
Development

No branches or pull requests

3 participants