Skip to content

Commit

Permalink
chore: fixes faulty links to /contribute/naming (#4158)
Browse files Browse the repository at this point in the history
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:

<img width="1438" alt="image"
src="https://github.com/user-attachments/assets/8a58faeb-d233-4812-8b0d-60e730079227">
  • Loading branch information
langz authored Oct 22, 2024
1 parent e5a62f1 commit 8087bb6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8087bb6

Please sign in to comment.