basxsoftwareassociation / bread

Engine to create database applications based on Django and the IBM Carbon Design System
BSD 3-Clause "New" or "Revised" License
19 stars 2 forks source link

Add tooltip components #108

Closed saemideluxe closed 2 years ago

saemideluxe commented 2 years ago

Add in bread/layout/components/tooltip.py

Add three new components:

Information about the behaviour and idea of the tooltips can be found here: https://www.carbondesignsystem.com/components/tooltip/usage/

Information about the implementation of the tooltips can be found here: https://the-carbon-components.netlify.app/?nav=tooltip

For InteractiveTooltip make sure to reuse an existing icon (not copying SVG code). The IconTooltip should support any Icon element.

When implementing the code, please only set the minium of required attributes. For example, id-attributes or aria-attributes are not required in most casts. class and data-* attributes are almost always required.

The __init__ methods of these components should be similar to that of other components. You can check other components where the same rule apply in general. That means:

saemideluxe commented 2 years ago

We will need this to make some additional improvments for the browse-view, according to https://github.com/basxsoftwareassociation/basxconnect/issues/108

dward2nd commented 2 years ago

Done as in #116

wipascal commented 2 years ago

I tested it.

saemideluxe commented 2 years ago

Thx