From 8087bb63d84d617aaa76a08d30ba062bdaacdbf1 Mon Sep 17 00:00:00 2001 From: Anders Date: Tue, 22 Oct 2024 17:36:33 +0200 Subject: [PATCH] chore: fixes faulty links to /contribute/naming (#4158) Fixes a few links in the following page: https://eufemia.dnb.no/uilib/helpers/functions/#topascalcase Which would link/redirect to a non-existing page: image --- .../src/docs/uilib/helpers/classes.mdx | 2 +- .../src/docs/uilib/helpers/functions.mdx | 8 ++++---- .../uilib/usage/customisation/component-properties.mdx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/dnb-design-system-portal/src/docs/uilib/helpers/classes.mdx b/packages/dnb-design-system-portal/src/docs/uilib/helpers/classes.mdx index 882129c2d3c..67473c9d006 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/helpers/classes.mdx +++ b/packages/dnb-design-system-portal/src/docs/uilib/helpers/classes.mdx @@ -145,4 +145,4 @@ text-shadow: none; ## HTML class naming -To ensure a consistent class structure and to ensure that the class is owned by the DNB UI Library, all classes in the UI Library are prefixed with `dnb-`. Read more about that in the [Naming conventions](/contribute/naming). +To ensure a consistent class structure and to ensure that the class is owned by the DNB UI Library, all classes in the UI Library are prefixed with `dnb-`. Read more about that in the [Naming conventions](/contribute/style-guides/naming). diff --git a/packages/dnb-design-system-portal/src/docs/uilib/helpers/functions.mdx b/packages/dnb-design-system-portal/src/docs/uilib/helpers/functions.mdx index 331831a7064..88d61482cf9 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/helpers/functions.mdx +++ b/packages/dnb-design-system-portal/src/docs/uilib/helpers/functions.mdx @@ -31,7 +31,7 @@ isTouchDevice() // returns Boolean ### toPascalCase -Transforms a string from **snake_case** to [PascalCase](!/contribute/naming). +Transforms a string from **snake_case** to [PascalCase](!/contribute/style-guides/naming). ```js import { toPascalCase } from '@dnb/eufemia/shared/component-helper' @@ -41,7 +41,7 @@ toPascalCase(String) // returns String ### toCamelCase -Transforms a string from **snake_case** to [camelCase](!/contribute/naming). +Transforms a string from **snake_case** to [camelCase](!/contribute/style-guides/naming). ```js import { toCamelCase } from '@dnb/eufemia/shared/component-helper' @@ -51,7 +51,7 @@ toCamelCase(String) // returns String ### toSnakeCase -Transforms a string from **PascalCase** to [snake_case](!/contribute/naming). +Transforms a string from **PascalCase** to [snake_case](!/contribute/style-guides/naming). ```js import { toSnakeCase } from '@dnb/eufemia/shared/component-helper' @@ -61,7 +61,7 @@ toSnakeCase(String) // returns String ### toKebabCase -Transforms a string from **PascalCase** to [kebab-case](!/contribute/naming). +Transforms a string from **PascalCase** to [kebab-case](!/contribute/style-guides/naming). ```js import { toKebabCase } from '@dnb/eufemia/shared/component-helper' diff --git a/packages/dnb-design-system-portal/src/docs/uilib/usage/customisation/component-properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/usage/customisation/component-properties.mdx index 4e66b78850d..766c440b782 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/usage/customisation/component-properties.mdx +++ b/packages/dnb-design-system-portal/src/docs/uilib/usage/customisation/component-properties.mdx @@ -14,7 +14,7 @@ Every [Component](/uilib/components) has its own `properties` to make them work ## Naming -Both the properties- and event names should use **camelCase** to support a universal [naming convention](/contribute/naming). +Both the properties- and event names should use **camelCase** to support a universal [naming convention](/contribute/style-guides/naming). ## Large Buttons & Icons