Migrate Link component from useStyles to useDefinition

Fix pre-existing variant default from 'body' to 'body-medium' to match
actual CSS selectors. Add missing 'info' color to docs-ui props definition.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
Johan Persson
2026-02-24 14:56:57 +01:00
parent fcfafb4515
commit 096dfdf86e
5 changed files with 33 additions and 63 deletions
@@ -38,7 +38,7 @@ export const linkPropDefs: Record<string, PropDef> = {
'body-small',
'body-x-small',
],
default: 'body',
default: 'body-medium',
responsive: true,
description:
'Typography style. Title variants for headings, body for paragraph text.',
@@ -56,7 +56,7 @@ export const linkPropDefs: Record<string, PropDef> = {
},
color: {
type: 'enum',
values: ['primary', 'secondary', 'danger', 'warning', 'success'],
values: ['primary', 'secondary', 'danger', 'warning', 'success', 'info'],
default: 'primary',
responsive: true,
description: