From 1df2ef64d564e7181c891f9549f38bff2ea323e3 Mon Sep 17 00:00:00 2001 From: Tobias Date: Tue, 5 Feb 2019 14:38:26 +0100 Subject: [PATCH] change the way we display the button in the portal. This is still WIP, and will be changes overtime to all components. --- .../src/pages/uilib/components/accordion.md | 2 +- .../src/pages/uilib/components/button.md | 33 ++++--------- .../pages/uilib/components/button/Examples.js | 49 ++++++++----------- .../pages/uilib/components/button/demos.md | 9 ---- .../{description.md => first-tab-content.md} | 6 +++ .../pages/uilib/components/button/index.js | 0 .../{details.md => second-tab-content.md} | 4 ++ .../components/button/third-tab-content.md | 9 ++++ .../customisation/component-properties.md | 1 - .../src/shared/inlineTags/Markup.js | 21 ++++++++ .../src/components/button/Button.js | 2 +- .../__snapshots__/Button.test.js.snap | 23 ++++++--- .../src/components/button/style/_button.scss | 19 +++---- .../components/button/style/dnb-button.scss | 12 +++++ .../__snapshots__/Dropdown.test.js.snap | 23 ++++++--- .../__snapshots__/InputMasked.test.js.snap | 23 ++++++--- .../__snapshots__/Input.test.js.snap | 23 ++++++--- .../__snapshots__/Modal.test.js.snap | 23 ++++++--- 18 files changed, 173 insertions(+), 109 deletions(-) delete mode 100644 packages/dnb-design-system-portal/src/pages/uilib/components/button/demos.md rename packages/dnb-design-system-portal/src/pages/uilib/components/button/{description.md => first-tab-content.md} (78%) delete mode 100644 packages/dnb-design-system-portal/src/pages/uilib/components/button/index.js rename packages/dnb-design-system-portal/src/pages/uilib/components/button/{details.md => second-tab-content.md} (98%) create mode 100644 packages/dnb-design-system-portal/src/pages/uilib/components/button/third-tab-content.md create mode 100644 packages/dnb-design-system-portal/src/shared/inlineTags/Markup.js diff --git a/packages/dnb-design-system-portal/src/pages/uilib/components/accordion.md b/packages/dnb-design-system-portal/src/pages/uilib/components/accordion.md index 6c61fad6695..958505e18cd 100644 --- a/packages/dnb-design-system-portal/src/pages/uilib/components/accordion.md +++ b/packages/dnb-design-system-portal/src/pages/uilib/components/accordion.md @@ -2,7 +2,7 @@ title: 'Accordion' draft: false status: 'wip' -# order: 1 +order: 1 --- import Tabs from 'Tags/Tabs' diff --git a/packages/dnb-design-system-portal/src/pages/uilib/components/button.md b/packages/dnb-design-system-portal/src/pages/uilib/components/button.md index 6b6fe3280b4..730d1e9e1e4 100644 --- a/packages/dnb-design-system-portal/src/pages/uilib/components/button.md +++ b/packages/dnb-design-system-portal/src/pages/uilib/components/button.md @@ -1,40 +1,25 @@ --- title: 'Button' draft: false -status: null -order: 1 +order: 2 --- import Tabs from 'Tags/Tabs' -import ComponentBox from 'Tags/ComponentBox' -import Description from 'Pages/uilib/components/button/description' -import Details from 'Pages/uilib/components/button/details' -import Demos from 'Pages/uilib/components/button/Examples' + +import FirstTabContent from 'Pages/uilib/components/button/first-tab-content' +import SecondTabContent from 'Pages/uilib/components/button/second-tab-content' +import ThirdTabContent from 'Pages/uilib/components/button/third-tab-content' # Button - -

Demos

- +
-
- - {` -