Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: About modal
section: components
cssPrefix: pf-c-about-modal-box
cssPrefix: pf-v5-c-about-modal-box
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to update this in example files right now? Looks like the CSS variables tables in component pages is empty in the preview. cc @nicolethoen would this be tied to patternfly/patternfly-org#3489 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think that with patternfly/patternfly-org#3489 the tables will work with this change.

Copy link
Contributor

@nicolethoen nicolethoen May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed! I think to keep parity with core, we should use the versioned prefixes here. My org work will get all this working again once it merges and I finish the follow up work in react to pull in the newer doc-framework version

propComponents: ['AboutModal']
---
import brandImg from './brandImg.svg';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Accordion
section: components
cssPrefix: pf-c-accordion
cssPrefix: pf-v5-c-accordion
propComponents: ['Accordion', 'AccordionItem', 'AccordionContent', 'AccordionToggle', AccordionExpandableContentBody]
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Action list
section: components
cssPrefix: pf-c-action-list
cssPrefix: pf-v5-c-action-list
propComponents: ['ActionList', 'ActionListGroup', 'ActionListItem']
---

Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Alert/examples/Alert.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Alert
section: components
cssPrefix: pf-c-alert
cssPrefix: pf-v5-c-alert
propComponents: ['Alert', 'AlertGroup', 'AlertActionCloseButton', 'AlertActionLink']
ouia: true
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.ws-react-c-alert .pf-c-alert {
.ws-react-c-alert .pf-v5-c-alert {
margin-bottom: 21px;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Avatar
section: components
cssPrefix: pf-c-avatar
cssPrefix: pf-v5-c-avatar
propComponents: ['Avatar']
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Back to top
section: components
cssPrefix: pf-c-back-to-top
cssPrefix: pf-v5-c-back-to-top
propComponents: ['BackToTop']
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Backdrop
section: components
cssPrefix: pf-c-backdrop
cssPrefix: pf-v5-c-backdrop
propComponents: ['Backdrop']
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Background image
section: components
cssPrefix: pf-c-background-image
cssPrefix: pf-v5-c-background-image
propComponents: ['BackgroundImage']
---

Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Badge/examples/Badge.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Badge
section: components
cssPrefix: pf-c-badge
cssPrefix: pf-v5-c-badge
propComponents: ['Badge']
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ test('Renders with class name pf-m-blue when "blue" is passed to variant prop',
expect(screen.getByText('Test')).toHaveClass('pf-m-blue');
});

test('Does not render pf-u-screen-reader class by default', () => {
test('Does not render pf-v5-u-screen-reader class by default', () => {
render(<Banner>Test</Banner>);
expect(screen.getByText('Test')).not.toContainHTML('<span class="pf-u-screen-reader"></span>');
expect(screen.getByText('Test')).not.toContainHTML('<span class="pf-v5-u-screen-reader"></span>');
});

test('Renders screenReaderText passed via prop', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Banner
section: components
cssPrefix: pf-c-banner
cssPrefix: pf-v5-c-banner
propComponents: ['Banner']
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Breadcrumb
section: components
cssPrefix: pf-c-breadcrumb
cssPrefix: pf-v5-c-breadcrumb
propComponents: ['Breadcrumb', 'BreadcrumbItem', 'BreadcrumbHeading']
ouia: true
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Button
section: components
cssPrefix: pf-c-button
cssPrefix: pf-v5-c-button
propComponents: ['Button', 'BadgeCountObject']
ouia: true
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: Calendar month
section: components
subsection: date-and-time
cssPrefix: pf-c-calendar-month
cssPrefix: pf-v5-c-calendar-month
propComponents: ['CalendarMonth', 'CalendarFormat', 'CalendarMonthInlineProps']
---

Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Card/examples/Card.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Card
section: components
cssPrefix: pf-c-card
cssPrefix: pf-v5-c-card
propComponents:
[
'Card',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: Checkbox
section: components
subsection: forms
cssPrefix: pf-c-check
cssPrefix: pf-v5-c-check
propComponents: ['Checkbox']
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.ws-react-c-checkbox .pf-c-check.nested {
.ws-react-c-checkbox .pf-v5-c-check.nested {
padding-left: var(--pf-v5-global--spacer--md);
}
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Chip/examples/Chip.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Chip
section: components
cssPrefix: pf-c-chip
cssPrefix: pf-v5-c-chip
propComponents: ['Chip', 'ChipGroup']
ouia: true
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Clipboard copy
section: components
cssPrefix: pf-c-copyclipboard
cssPrefix: pf-v5-c-copyclipboard
propComponents: ['ClipboardCopy', 'ClipboardCopyButton']
ouia: true
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Code block
section: components
cssPrefix: pf-c-code-block
cssPrefix: pf-v5-c-code-block
propComponents: ['CodeBlock', 'CodeBlockAction', 'CodeBlockCode']
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Data list
section: components
cssPrefix: pf-c-data-list
cssPrefix: pf-v5-c-data-list
propComponents:
[
'DataList',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: Date picker
section: components
subsection: date-and-time
cssPrefix: pf-c-date-picker
cssPrefix: pf-v5-c-date-picker
propComponents: ['DatePicker', 'CalendarFormat', 'DatePickerRef']
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: 'Description list'
section: components
cssPrefix: 'pf-c-description-list'
cssPrefix: 'pf-v5-c-description-list'
propComponents:
[
'DescriptionList',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Divider
section: components
cssPrefix: pf-c-divider
cssPrefix: pf-v5-c-divider
propComponents: ['Divider']
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: Drawer
cssPrefix: pf-c-drawer
cssPrefix: pf-v5-c-drawer
propComponents:
[
Drawer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: Dropdown
section: components
subsection: menus
cssPrefix: pf-c-menu
cssPrefix: pf-v5-c-menu
propComponents:
[
'Dropdown',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Dual list selector
section: components
cssPrefix: 'pf-c-dual-list-selector'
cssPrefix: 'pf-v5-c-dual-list-selector'
propComponents:
[
'DualListSelector',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Empty state
section: components
cssPrefix: pf-c-empty-state
cssPrefix: pf-v5-c-empty-state
propComponents: ['EmptyState', 'EmptyStateHeader', 'EmptyStateIcon', 'EmptyStateBody', 'EmptyStateFooter', 'EmptyStateActions']
---
import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Expandable section
section: components
cssPrefix: pf-c-expandable-section
cssPrefix: pf-v5-c-expandable-section
propComponents: ['ExpandableSection', 'ExpandableSectionToggle']
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: Simple file upload
cssPrefix: pf-c-file-upload
cssPrefix: pf-v5-c-file-upload
propComponents: ['FileUpload', 'FileUploadField']
section: components
subsection: file-upload
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Form/examples/Form.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: Form
section: components
subsection: forms
cssPrefix: pf-c-form
cssPrefix: pf-v5-c-form
propComponents:
[
'ActionGroup',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: Form select
section: components
subsection: forms
cssPrefix: pf-c-form-control
cssPrefix: pf-v5-c-form-control
propComponents: ['FormSelect', 'FormSelectOption', 'FormSelectOptionGroup']
ouia: true
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Helper text
section: components
cssPrefix: pf-c-helper-text
cssPrefix: pf-v5-c-helper-text
propComponents: ['HelperText', 'HelperTextItem']
---

Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Icon/examples/Icon.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Icon
section: components
cssPrefix: pf-c-icon
cssPrefix: pf-v5-c-icon
propComponents: ['Icon']
---

Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Label/examples/Label.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Label
section: components
cssPrefix: pf-c-label
cssPrefix: pf-v5-c-label
propComponents: ['Label', 'LabelGroup']
---

Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/components/List/examples/List.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: List
section: components
cssPrefix: pf-c-list
cssPrefix: pf-v5-c-list
propComponents: ['List', 'ListItem']
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Login page
section: components
cssPrefix: pf-c-login
cssPrefix: pf-v5-c-login
propComponents:
[
'LoginPage',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Masthead
section: components
cssPrefix: pf-c-masthead
cssPrefix: pf-v5-c-masthead
propComponents: ['Masthead', 'MastheadToggle', 'MastheadMain', 'MastheadBrand', 'MastheadContent']
---

Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Menu/examples/Menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: Menu
section: components
subsection: menus
cssPrefix: pf-c-menu
cssPrefix: pf-v5-c-menu
propComponents:
[
'Menu',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#ws-react-c-menu-toggle-primary .pf-c-menu-toggle, #ws-react-c-menu-toggle-secondary .pf-c-menu-toggle {
#ws-react-c-menu-toggle-primary .pf-v5-c-menu-toggle, #ws-react-c-menu-toggle-secondary .pf-v5-c-menu-toggle {
vertical-align: bottom;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: Menu toggle
section: components
subsection: menus
cssPrefix: pf-c-menu-toggle
cssPrefix: pf-v5-c-menu-toggle
propComponents: ['MenuToggle', 'MenuToggleAction', 'MenuToggleCheckbox', 'SplitButtonOptions']
---

Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Modal/examples/Modal.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Modal
section: components
cssPrefix: pf-c-modal-box
cssPrefix: pf-v5-c-modal-box
propComponents: ['Modal']
ouia: true
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: Multiple file upload
section: components
subsection: file-upload
cssPrefix: pf-c-multiple-file-upload
cssPrefix: pf-v5-c-multiple-file-upload
propComponents:
['MultipleFileUpload', 'MultipleFileUploadMain', 'MultipleFileUploadStatus', 'MultipleFileUploadStatusItem']
---
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Nav/examples/Nav.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: Navigation
section: components
cssPrefix: pf-c-nav
cssPrefix: pf-v5-c-nav
propComponents: ['Nav', 'NavList', 'NavGroup', 'NavItem', 'NavItemSeparator', 'NavExpandable']
ouia: true
---
Expand Down
Loading