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

Tooltips: Toolbar Icon tooltips #4404

Open
sorja opened this issue Feb 27, 2025 · 0 comments
Open

Tooltips: Toolbar Icon tooltips #4404

sorja opened this issue Feb 27, 2025 · 0 comments
Assignees

Comments

@sorja
Copy link
Contributor

sorja commented Feb 27, 2025

Add descriptive tooltips where around the platform for icons / buttons.

Toolbar icons need tooltip, for example:

Image

Example implementation for tooltip-black

-- usage
      data-tooltip-content="View history"
      data-tooltip-id={TooltipId.black}


-- Tooltip.scss
-- Note - dont use black / white 
-- Note - should use @mixin
-- Note - darken and lighten are deprecated

    &.black {
      color: white;
      border: white solid 1px;
      background-color: black;
      max-width: 240px;
      opacity: 0.95;

     .black-tooltip-arrow {
        border-bottom: 1px solid darken($text-body, 4%);
        border-right: 1px solid darken($text-body, 4%);
      }
    }

-- Tooltips.tsx
 <Tooltip className={TooltipId.black} classNameArrow={`${TooltipId.black}-arrow`} id={TooltipId.black} />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants