Skip to content

Commit c154d22

Browse files
committed
update remaining tokens to use camelcase
1 parent c5d792f commit c154d22

File tree

6 files changed

+12
-21
lines changed

6 files changed

+12
-21
lines changed

packages/react-core/src/components/Page/examples/PageCenteredSection.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ import {
1818
CardBody
1919
} from '@patternfly/react-core';
2020
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
21-
/* eslint-disable camelcase */
22-
import c_page_section_m_limit_width_MaxWidth from '@patternfly/react-tokens/dist/esm/c_page_section_m_limit_width_MaxWidth';
21+
import pageSectionWidthLimitMaxWidth from '@patternfly/react-tokens/dist/esm/c_page_section_m_limit_width_MaxWidth';
2322

2423
export const PageCenteredSection: React.FunctionComponent = () => {
2524
const [isSidebarOpen, setIsSidebarOpen] = useState(true);
@@ -72,7 +71,7 @@ export const PageCenteredSection: React.FunctionComponent = () => {
7271
<Card>
7372
<CardBody>
7473
When a width limited page section is wider than the value of
75-
<code>{c_page_section_m_limit_width_MaxWidth.name}</code>, the section will be centered in the main section.
74+
<code>{pageSectionWidthLimitMaxWidth.name}</code>, the section will be centered in the main section.
7675
<br />
7776
<br />
7877
The content in this example is placed in a card to better illustrate how the section behaves when it is

packages/react-core/src/demos/examples/Card/CardAggregateStatus.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable camelcase */
21
import { Fragment } from 'react';
32
import {
43
Card,
@@ -16,7 +15,7 @@ import {
1615
import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
1716
import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
1817
import ExclamationTriangleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
19-
import l_gallery_GridTemplateColumns_min from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
18+
import galleryGridTemplateColumnsMin from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
2019

2120
interface ContentType {
2221
icon?: React.ReactNode;
@@ -283,10 +282,7 @@ export const CardAggregateStatus: React.FunctionComponent = () => {
283282
}
284283
return (
285284
<GridItem key={groupIndex}>
286-
<Gallery
287-
hasGutter
288-
style={{ [l_gallery_GridTemplateColumns_min.name]: galleryWidth } as React.CSSProperties}
289-
>
285+
<Gallery hasGutter style={{ [galleryGridTemplateColumnsMin.name]: galleryWidth } as React.CSSProperties}>
290286
{cardData[cardGroup].map(({ title, content, layout }, cardIndex: number) => (
291287
<Card
292288
style={{ textAlign: cardAlign } as React.CSSProperties}

packages/react-core/src/demos/examples/Card/CardDetails.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable camelcase */
21
import {
32
Card,
43
CardTitle,
@@ -12,10 +11,10 @@ import {
1211
DescriptionListDescription,
1312
Divider
1413
} from '@patternfly/react-core';
15-
import l_gallery_GridTemplateColumns_min from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
14+
import galleryGridTemplateColumnsMin from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
1615

1716
export const CardDetailsDemo: React.FunctionComponent = () => (
18-
<Gallery hasGutter style={{ [l_gallery_GridTemplateColumns_min.name]: '260px' } as React.CSSProperties}>
17+
<Gallery hasGutter style={{ [galleryGridTemplateColumnsMin.name]: '260px' } as React.CSSProperties}>
1918
<Card>
2019
<CardTitle>
2120
<Title headingLevel="h4" size="xl">

packages/react-core/src/demos/examples/Card/CardEventsView.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Fragment, useState } from 'react';
2-
/* eslint-disable camelcase */
32
import {
43
Card,
54
CardHeader,
@@ -26,7 +25,7 @@ import {
2625
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
2726
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
2827
import flex from '@patternfly/react-styles/css/utilities/Flex/flex';
29-
import l_gallery_GridTemplateColumns_min from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
28+
import galleryGridTemplateColumnsMin from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
3029

3130
export const CardEventsView: React.FunctionComponent = () => {
3231
const [isOpen, setIsOpen] = useState(false);
@@ -62,7 +61,7 @@ export const CardEventsView: React.FunctionComponent = () => {
6261
<code>baseline</code> alignment.
6362
<br />
6463
<br />
65-
<Gallery hasGutter style={{ [l_gallery_GridTemplateColumns_min.name]: '360px' } as React.CSSProperties}>
64+
<Gallery hasGutter style={{ [galleryGridTemplateColumnsMin.name]: '360px' } as React.CSSProperties}>
6665
<Card id="card-events-view-example">
6766
<CardHeader className={flex.alignItemsFlexStart} actions={{ actions: headerActions, hasNoOffset: true }}>
6867
<CardTitle>

packages/react-core/src/demos/examples/Card/CardLogView.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Fragment, useState } from 'react';
2-
/* eslint-disable camelcase */
32
import {
43
Card,
54
CardHeader,
@@ -21,7 +20,7 @@ import {
2120
Title
2221
} from '@patternfly/react-core';
2322
import flex from '@patternfly/react-styles/css/utilities/Flex/flex';
24-
import l_gallery_GridTemplateColumns_min from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
23+
import galleryGridTemplateColumnsMin from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';
2524

2625
export const CardLogView: React.FunctionComponent = () => {
2726
const [isOpen, setIsOpen] = useState(false);
@@ -61,7 +60,7 @@ export const CardLogView: React.FunctionComponent = () => {
6160
<code>baseline</code> alignment.
6261
<br />
6362
<br />
64-
<Gallery hasGutter style={{ [l_gallery_GridTemplateColumns_min.name]: '360px' } as React.CSSProperties}>
63+
<Gallery hasGutter style={{ [galleryGridTemplateColumnsMin.name]: '360px' } as React.CSSProperties}>
6564
<Card id="card-log-view-example">
6665
<CardHeader className={flex.alignItemsFlexStart} actions={{ actions: headerActions, hasNoOffset: true }}>
6766
<CardTitle>

packages/react-integration/demo-app-ts/src/components/demos/LoginPageDemo/LoginPageDemo.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Component } from 'react';
2-
/* eslint-disable camelcase */
32
import brandImg from '../../../assets/images/brandImgColor.svg';
4-
import pfbg_icon from '../../../assets/images/pfbg-icon.svg';
3+
import pfbgIcon from '../../../assets/images/pfbg-icon.svg';
54

65
import {
76
LoginFooterItem,
@@ -148,7 +147,7 @@ export class LoginPageDemo extends Component<React.HTMLProps<HTMLDivElement>, Lo
148147
footerListVariants={ListVariant.inline}
149148
brandImgSrc={brandImg}
150149
brandImgAlt="PatternFly logo"
151-
backgroundImgSrc={pfbg_icon}
150+
backgroundImgSrc={pfbgIcon}
152151
footerListItems={listItems}
153152
textContent="This is placeholder text only. Use this area to place any information or introductory message about your
154153
application that may be relevant to users."

0 commit comments

Comments
 (0)