diff --git a/packages/react-core/src/components/DataList/examples/DataList.md b/packages/react-core/src/components/DataList/examples/DataList.md index 722f5846ddc..6afc7e27a3b 100644 --- a/packages/react-core/src/components/DataList/examples/DataList.md +++ b/packages/react-core/src/components/DataList/examples/DataList.md @@ -23,10 +23,6 @@ import AngleDownIcon from '@patternfly/react-icons/dist/esm/icons/angle-down-ico import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon'; import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon'; import { css } from '@patternfly/react-styles'; -import global_Color_100 from '@patternfly/react-tokens/dist/esm/global_Color_100'; -import global_BackgroundColor_200 from '@patternfly/react-tokens/dist/esm/global_BackgroundColor_200'; -import global_BorderColor_100 from '@patternfly/react-tokens/dist/esm/global_BorderColor_100'; -import global_BorderWidth_sm from '@patternfly/react-tokens/dist/esm/global_BorderWidth_sm'; ## Examples diff --git a/packages/react-core/src/components/DataList/examples/DataListWidthModifiers.tsx b/packages/react-core/src/components/DataList/examples/DataListWidthModifiers.tsx index f892de9a118..361c85aabb1 100644 --- a/packages/react-core/src/components/DataList/examples/DataListWidthModifiers.tsx +++ b/packages/react-core/src/components/DataList/examples/DataListWidthModifiers.tsx @@ -19,11 +19,6 @@ import { MenuToggleElement } from '@patternfly/react-core'; import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon'; -/* eslint-disable camelcase */ -import global_Color_100 from '@patternfly/react-tokens/dist/esm/global_Color_100'; -import global_BackgroundColor_200 from '@patternfly/react-tokens/dist/esm/global_BackgroundColor_200'; -import global_BorderColor_100 from '@patternfly/react-tokens/dist/esm/global_BorderColor_100'; -import global_BorderWidth_sm from '@patternfly/react-tokens/dist/esm/global_BorderWidth_sm'; export const DataListWidthModifiers: React.FunctionComponent = () => { const [show, setShow] = React.useState(true); @@ -46,15 +41,6 @@ export const DataListWidthModifiers: React.FunctionComponent = () => { setIsOpen2(!isOpen2); }; - const previewPlaceholder = { - display: 'block', - width: '100%', - padding: '.25rem .5rem', - color: global_Color_100.var, - backgroundColor: global_BackgroundColor_200.var, - border: `${global_BorderWidth_sm.var} ${global_BorderColor_100.var} solid` - }; - return ( <>
@@ -68,19 +54,15 @@ export const DataListWidthModifiers: React.FunctionComponent = () => { -
- default -

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

-
+ default +

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

, -
- default -

- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut - labore et dolore magna aliqua. -

-
+ default +

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut + labore et dolore magna aliqua. +

]} /> @@ -99,16 +81,12 @@ export const DataListWidthModifiers: React.FunctionComponent = () => { -
- width 2 -

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.

-
+ width 2 +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.

, -
- width 4 -

Lorem ipsum dolor sit amet.

-
+ width 4 +

Lorem ipsum dolor sit amet.

]} /> @@ -177,20 +155,14 @@ export const DataListWidthModifiers: React.FunctionComponent = () => { -
- width 5 -

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

-
+ width 5 +

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

, -
- width 2 -

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

-
+ width 2 +

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

, - -
default
-
+ default ]} />