diff --git a/packages/dnb-design-system-portal/src/docs/uilib/about-the-lib/releases/eufemia/v10-info.md b/packages/dnb-design-system-portal/src/docs/uilib/about-the-lib/releases/eufemia/v10-info.md index e1e39e81465..c885cf0d3ca 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/about-the-lib/releases/eufemia/v10-info.md +++ b/packages/dnb-design-system-portal/src/docs/uilib/about-the-lib/releases/eufemia/v10-info.md @@ -139,6 +139,10 @@ When you convert from `` to `` – follow these steps: 1. In v10, InputMasked **allows leading zeros**. To prevent that behaviour, the property `allowLeadingZeroes` has changed to `disallowLeadingZeroes`. +### [FormRow](/uilib/components/form-row) + +1. The FormRow properties `indent` and `indent_offset` were removed. + ### Removal of `data-testid` in components - [InfoCard](/uilib/components/info-card). diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/form-row/Examples.js b/packages/dnb-design-system-portal/src/docs/uilib/components/form-row/Examples.tsx similarity index 51% rename from packages/dnb-design-system-portal/src/docs/uilib/components/form-row/Examples.js rename to packages/dnb-design-system-portal/src/docs/uilib/components/form-row/Examples.tsx index dd08f80ad73..59e782c1d03 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/components/form-row/Examples.js +++ b/packages/dnb-design-system-portal/src/docs/uilib/components/form-row/Examples.tsx @@ -25,6 +25,7 @@ import { FormSet, FormRow, } from '@dnb/eufemia/src/components' +import { Ingress } from '@dnb/eufemia/src/elements' const TestStyles = styled.div` /* make sure our input gets an explicit width, because of mac/linux rendering differences */ @@ -70,35 +71,17 @@ const Box = styled(Space)` export const FormRowVerticalAlignedLabels = () => ( - { - /* jsx */ ` - - Custom legend: - - } - label_direction="vertical" -> - - - -` - } - - -) - -export const FormRowLegendIndentUsage = () => ( - - - { - /* jsx */ ` - - - -` - } + + Custom legend: + + } + label_direction="vertical" + > + + + ) @@ -106,77 +89,53 @@ export const FormRowLegendIndentUsage = () => ( export const FormRowSectionStyle = () => ( - { - /* jsx */ ` - - - -` - } + + + ) export const FormRowCombineVerticalAndHorizontal = () => ( - - { - /* jsx */ ` -// 1. In the nested FormRow we reset the layout to not be vertical -// 2. So we can use a different direction ("label_direction") -render( - - Custom vertical legend: - - } - vertical - > - - - - - - - - -) -` - } - - -) - -export const FormRowCustomIndentLayout = () => ( - - - { - /* jsx */ ` -const CustomRow = styled(FormRow)\` - align-items: flex-end; - > .dnb-form-label { - max-width: 12rem; - background: var(--color-white); - color: var(--color-fire-red); - } -\` -render( - - - -) -` - } + + {() => { + // 1. In the nested FormRow we reset the layout to not be vertical + // 2. So we can use a different direction ("label_direction") + return ( + + Custom vertical legend: + + } + vertical + > + + + + + + + + + ) + }} ) @@ -184,13 +143,12 @@ render( export const FormRowDefault = () => ( - { - /* jsx */ ` - - - -` - } + + + ) @@ -198,43 +156,51 @@ export const FormRowDefault = () => ( export const FormRowVertical = () => ( - { - /* jsx */ ` - - - - -` - } + + + + ) export const FormRowVerticalDirection = () => ( - - { - /* jsx */ ` -const CustomRow = styled(FormRow)\` - .dnb-form-row__content .dnb-button { - align-self: flex-end; - transform: translateY(0.25rem); /* 4px down */ - } -\` -render( -Legend } - label_direction="vertical" -> - -