Skip to content

Draft: Add tooltip component customClass data parameter

What does this MR do and why?

This is a technical depth MR. Add customClass parameter to the haml gl-tooltip wrapper. The component itself does support this parameter but the wrapper is not.

This is a follow-up issue My issue #359890 (closed) and MR to !90705 (merged)

Screenshots or screen recordings

before after
Screenshot_2022-06-22_at_17.48.51 Screenshot_2022-06-22_at_17.52.23

How to set up and validate locally

  1. checkout this branch
  2. in some haml file create HTML tag add the following:
      .has-tooltip{
       data:{ "custom-class": 'any-custom-class' },
       title: 'some tooltip text'}
  3. the result tooltip html will have custom class

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #359890 (closed)

Edited by Tomas Bulva

Merge request reports