Altinn / altinn-design-system

Design system v2
https://designsystem.altinn.studio/
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

Component: HelpText/Tooltip #253

Closed Magnusrm closed 1 year ago

Magnusrm commented 1 year ago

Describe the component

In Altinn3 we need a help-text button to display additional information about the field the user is about to fill in. In order to use this together with labels/legends we should create this button as a component in the DesignSystem and export it.

It should then be implemented into the FieldSet component in order to be able to place the component inside a fieldset next to the label/legend.

Example from app-frontend-react, not actual finished design:

image

Figma

Link to correct placement in our Figma component library.

Tokens

Replace with size tokens

Replace with padding

Replace with colors

Replace with border width

Replace with text

Guidelines

Not necessarry for development to start

SVG

Magnusrm commented 1 year ago

This component has been developed and added to the new DIGDIR design system: https://github.com/digdir/designsystem