From 223c80980b2738f2eb64164e2d485abc8885afaa Mon Sep 17 00:00:00 2001 From: Snorre Kim Date: Tue, 22 Aug 2023 15:15:55 +0200 Subject: [PATCH] chore: remove button example --- .../uilib/components/form-row/Examples.tsx | 73 +----------------- .../docs/uilib/components/form-row/demos.mdx | 6 -- .../__tests__/FormRow.screenshot.test.ts | 7 -- ...ical-form-row-label-with-a-button.snap.png | Bin 11874 -> 0 bytes ...ical-form-row-label-with-a-button.snap.png | Bin 8528 -> 0 bytes 5 files changed, 1 insertion(+), 85 deletions(-) delete mode 100644 packages/dnb-eufemia/src/components/form-row/__tests__/__image_snapshots__/formrow-for-sbanken-have-to-match-vertical-form-row-label-with-a-button.snap.png delete mode 100644 packages/dnb-eufemia/src/components/form-row/__tests__/__image_snapshots__/formrow-for-ui-have-to-match-vertical-form-row-label-with-a-button.snap.png diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/form-row/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/components/form-row/Examples.tsx index bb26396a8d6..2ea201e5707 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/components/form-row/Examples.tsx +++ b/packages/dnb-design-system-portal/src/docs/uilib/components/form-row/Examples.tsx @@ -27,7 +27,7 @@ import { FormRow, } from '@dnb/eufemia/src' import { SpacingElementProps } from '@dnb/eufemia/src/shared/types' -import { Provider, VisibilityByTheme } from '@dnb/eufemia/src/shared' +import { Provider } from '@dnb/eufemia/src/shared' import { SpaceAllProps } from '@dnb/eufemia/src/components/space/Space' const TestStyles = styled.div` @@ -171,77 +171,6 @@ export const FormRowVertical = () => ( ) -export const FormRowVerticalDirection = () => ( - - - {() => { - const CustomRow = styled(FormRow)` - .dnb-form-row__content .dnb-button { - align-self: flex-end; - transform: translateY(0.25rem); /* 4px down */ - } - ` - const CustomRowSbanken = styled(FormRow)` - .dnb-form-row__content .dnb-button { - align-self: flex-end; - } - ` - return ( - <> -