diff --git a/packages/dnb-design-system-portal/src/docs/contribute/style-guides/documentation.mdx b/packages/dnb-design-system-portal/src/docs/contribute/style-guides/documentation.mdx index 340fb6ef57b..8aad7fa27a3 100644 --- a/packages/dnb-design-system-portal/src/docs/contribute/style-guides/documentation.mdx +++ b/packages/dnb-design-system-portal/src/docs/contribute/style-guides/documentation.mdx @@ -1,7 +1,7 @@ --- title: 'Documentation' order: 3 -status: 'wip' +status: 'new' --- # Documentation @@ -23,3 +23,14 @@ Text ``` + +### Link to a specific theme + +You can add a parameter called `eufemia-theme` to a url: + +```md +[Relative](/uilib/components/badge/demos/?eufemia-theme=sbanken) +Absolute: https://eufemia.dnb.no/uilib/components/badge/demos/?eufemia-theme=sbanken +``` + +It will change and set the current theme used theme once the user visits the related page. diff --git a/packages/dnb-design-system-portal/src/docs/uilib/usage/customisation/theming/theme/info.mdx b/packages/dnb-design-system-portal/src/docs/uilib/usage/customisation/theming/theme/info.mdx index 34c9533ffe2..d4122c90e25 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/usage/customisation/theming/theme/info.mdx +++ b/packages/dnb-design-system-portal/src/docs/uilib/usage/customisation/theming/theme/info.mdx @@ -6,7 +6,7 @@ showTabs: true The Theme component is a helper component that lets you create nested theming solutions. -`` Will by default create a `div` wrapper, when no custom element is defined (e.g. `element="span"`). +`` will by default create a `div` wrapper, when no custom element is defined (e.g. `element="span"`). ```tsx import { Theme, useTheme } from '@dnb/eufemia/shared'