Skip to content
Draft
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
3 changes: 2 additions & 1 deletion .github/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ echo "Doing a release..."
LOG=$(git log --format="%s" -1 | grep -Poe "#\d+")
PR_NUM=${LOG:1}

yarn run lerna publish prerelease --preid=prerelease --dist-tag=prerelease --yes 2>&1 | tee lerna-output.txt
#yarn run lerna publish prerelease --preid=prerelease --dist-tag=prerelease --yes 2>&1 | tee lerna-output.txt
yarn run lerna publish patch --dist-tag=prerelease-patch --no-private --yes 2>&1 | tee lerna-output.txt

# use lerna command below for dry run
#yarn run lerna version prerelease --preid=prerelease --yes --no-git-tag-version --no-push | tee lerna-output.txt
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/documentation-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Documentation deploy
on:
workflow_run:
workflows: [Documentation]
types: [completed]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion != 'cancelled'
env:
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
GH_PR_TOKEN: ${{ secrets.GH_PR_TOKEN }}
steps:
- name: Check out project
uses: actions/checkout@v4

- name: Set up project
uses: ./.github/actions/setup-project
with:
skip-build: true

- name: Download PR number
uses: actions/download-artifact@v4
with:
name: pr-number
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Set PR number
run: echo "GH_PR_NUM=$(cat pr-number.txt)" >> $GITHUB_ENV

- name: Download documentation
uses: actions/download-artifact@v4
with:
name: documentation
path: packages/react-docs/public
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Download a11y coverage
uses: actions/download-artifact@v4
with:
name: a11y-coverage
path: packages/react-docs/coverage
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload documentation
run: node .github/upload-preview.mjs packages/react-docs/public

- name: Upload accessibility results
if: always()
run: node .github/upload-preview.mjs packages/react-docs/coverage
43 changes: 34 additions & 9 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Documentation
on:
pull_request_target:
pull_request:
issue_comment:
types: [created]
workflow_call:
Expand All @@ -13,6 +13,7 @@ on:
required: true
jobs:
check-permissions:
if: github.event_name == 'issue_comment'
uses: patternfly/.github/.github/workflows/check-team-membership.yml@fdb52a63a2220ec8a3b6c2d43f312cda708ffa06
secrets: inherit

Expand All @@ -23,37 +24,61 @@ jobs:
if: >-
always() &&
!cancelled() &&
(github.event_name == 'workflow_call' || needs.check-permissions.outputs.allowed == 'true')
(github.event_name != 'issue_comment' || needs.check-permissions.outputs.allowed == 'true')
env:
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
GH_PR_TOKEN: ${{ secrets.GH_PR_TOKEN }}
GH_PR_NUM: ${{ needs.check-permissions.outputs.pr-number }}
steps:
- name: Check out project from PR branch
if: github.event_name == 'pull_request_target' || github.event_name == 'issue_comment'
if: github.event_name == 'issue_comment'
uses: actions/checkout@v4
with:
# Checkout the merge commit so that we can access the PR's changes.
# This is nessesary because `pull_request_target` checks out the base branch (e.g. `main`) by default.
ref: refs/pull/${{ env.GH_PR_NUM }}/head

- name: Check out project
if: github.event_name == 'workflow_call'
if: github.event_name != 'issue_comment'
uses: actions/checkout@v4

- name: Set up and build project
uses: ./.github/actions/setup-project

- name: Build documentation
run: yarn build:docs

- name: Upload documentation
if: always()
- name: Upload documentation preview
if: always() && !cancelled() && github.event_name != 'pull_request'
run: node .github/upload-preview.mjs packages/react-docs/public

- name: Run accessibility tests
run: yarn serve:docs & yarn test:a11y

- name: Upload accessibility results
if: always()
if: always() && !cancelled() && github.event_name != 'pull_request'
run: node .github/upload-preview.mjs packages/react-docs/coverage

- name: Upload docs artifact
if: always() && !cancelled() && github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: documentation
path: packages/react-docs/public

- name: Upload a11y artifact
if: always() && !cancelled() && github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: a11y-coverage
path: packages/react-docs/coverage

- name: Save PR number
if: always() && !cancelled() && github.event_name == 'pull_request'
run: echo "${{ github.event.pull_request.number }}" > pr-number.txt

- name: Upload PR number
if: always() && !cancelled() && github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: pr-number
path: pr-number.txt
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release
on:
push:
branches:
- main
- 6.6.x
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![lerna](https://img.shields.io/badge/maintained%20with-lerna-green.svg?style=for-the-badge)](https://lernajs.io/)
[![PatternFly npm badge](https://img.shields.io/npm/v/@patternfly/react-core.svg?label=PF%20Core&style=for-the-badge)](https://www.npmjs.com/package/@patternfly/react-core)

This project provides a set of React components for the [PatternFly project](https://patternfly.org).

**Community:** [PatternFly website](https://www.patternfly.org) | [Slack](https://slack.patternfly.org) | [Medium](https://medium.com/patternfly) | [Mailing list](https://www.redhat.com/mailman/listinfo/patternfly)
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
},
"version": "independent",
"allowBranch": ["main", "v4", "5.0.x", "6.3.x", "v5"],
"allowBranch": ["main", "v4", "5.0.x", "6.3.x", "v5", "6.6.x"],
"packages": ["packages/*", "packages/react-integration/demo-app-ts"],
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
4 changes: 4 additions & 0 deletions packages/react-charts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [8.6.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-charts@8.6.0...@patternfly/react-charts@8.6.1) (2026-08-03)

**Note:** Version bump only for package @patternfly/react-charts

# [8.6.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-charts@8.6.0-prerelease.4...@patternfly/react-charts@8.6.0) (2026-07-01)

**Note:** Version bump only for package @patternfly/react-charts
Expand Down
2 changes: 1 addition & 1 deletion packages/react-charts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/react-charts",
"version": "8.6.0",
"version": "8.6.1",
"description": "This library provides a set of React chart components for use with the PatternFly reference implementation.",
"main": "dist/js/index.js",
"module": "dist/esm/index.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/react-code-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [6.6.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@6.6.0...@patternfly/react-code-editor@6.6.1) (2026-08-03)

**Note:** Version bump only for package @patternfly/react-code-editor

# [6.6.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@6.6.0-prerelease.10...@patternfly/react-code-editor@6.6.0) (2026-07-01)

**Note:** Version bump only for package @patternfly/react-code-editor
Expand Down
2 changes: 1 addition & 1 deletion packages/react-code-editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/react-code-editor",
"version": "6.6.0",
"version": "6.6.1",
"description": "This package provides a PatternFly wrapper for the Monaco code editor\n",
"main": "dist/js/index.js",
"module": "dist/esm/index.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/react-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [6.6.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@6.6.0...@patternfly/react-core@6.6.1) (2026-08-03)

**Note:** Version bump only for package @patternfly/react-core

# [6.6.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-core@6.6.0-prerelease.9...@patternfly/react-core@6.6.0) (2026-07-01)

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions packages/react-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/react-core",
"version": "6.6.0",
"version": "6.6.1",
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
"main": "dist/js/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -54,7 +54,7 @@
"tslib": "^2.8.1"
},
"devDependencies": {
"@patternfly/patternfly": "^6.6.0",
"@patternfly/patternfly": "6.6.1",
"case-anything": "^3.1.2",
"css": "^3.0.0",
"fs-extra": "^11.3.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styles from '@patternfly/react-styles/css/components/DualListSelector/dua
import { css } from '@patternfly/react-styles';
import { DualListSelectorTreeItemData } from './DualListSelectorTree';
import { Badge } from '../Badge';
import RhMicronsCaretDownIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-down-icon';
import RhMicronsCaretRightIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-right-icon';
import { flattenTree } from './treeUtils';
import { DualListSelectorListContext } from './DualListSelectorContext';
import { useHasAnimations } from '../../helpers';
Expand Down Expand Up @@ -136,7 +136,7 @@ const DualListSelectorTreeItemBase: React.FunctionComponent<DualListSelectorTree
tabIndex={-1}
>
<span className={css(styles.dualListSelectorItemToggleIcon)}>
<RhMicronsCaretDownIcon />
<RhMicronsCaretRightIcon />
</span>
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const Hero: React.FunctionComponent<HeroProps> = ({
bodyWidth,
bodyMaxWidth,
...props
}) => {
}: HeroProps) => {
const customStyles: { [key: string]: string } = {};
if (backgroundSrcLight) {
customStyles[heroBackgroundImageLight.name] = `url(${backgroundSrcLight})`;
Expand Down
8 changes: 5 additions & 3 deletions packages/react-core/src/components/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,11 @@ export interface PopoverProps {
shouldOpen?: (event: MouseEvent | KeyboardEvent, showFunction?: () => void) => void;
/** Flag indicating whether the close button should be shown. */
showClose?: boolean;
/** Sets an interaction to open popover, defaults to "click" */
/** @deprecated Sets an interaction to open popover, defaults to "click" */
triggerAction?: 'click' | 'hover';
/** Whether to trap focus in the popover. */
/** Whether to trap focus in the popover. When using a triggerAction of "hover", this will be set to false
* by default and must remain false.
*/
withFocusTrap?: boolean;
/** The z-index of the popover. */
zIndex?: number;
Expand Down Expand Up @@ -267,7 +269,7 @@ export const Popover: React.FunctionComponent<PopoverProps> = ({
],
animationDuration = 300,
id,
withFocusTrap: propWithFocusTrap,
withFocusTrap: propWithFocusTrap = triggerAction === 'hover' ? false : undefined,
triggerRef,
hasNoPadding = false,
hasAutoWidth = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ By default, the `appendTo` prop of the popover will append to the document body

### Hoverable

```ts file="./PopoverHover.tsx"
Pass the `triggerAction="hover"` property to make a `<Popover>` that is triggered via hover and focus rather than on click. When using a hoverable Popover, you **must not** include any interactive or semantic content (e.g. buttons, links, headings, lists, etc), as focus is not intended to enter a hoverable `<Popover>`. Including such content may cause an inaccessible UI for users who are not able to reach the content when navigating via assistive tech.

It is instead recommended to use our [tooltip component](/components/tooltip).

```ts isDeprecated file="./PopoverHover.tsx"

```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { memo, useState, useEffect, Children, isValidElement, cloneElement } from 'react';
import { css } from '@patternfly/react-styles';
import styles from '@patternfly/react-styles/css/components/TreeView/tree-view';
import RhMicronsCaretDownIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-down-icon';
import RhMicronsCaretRightIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-right-icon';
import { TreeViewDataItem } from './TreeView';
import { Badge } from '../Badge';
import { useSSRSafeId } from '../../helpers';
Expand Down Expand Up @@ -155,7 +155,7 @@ const TreeViewListItemBase: React.FunctionComponent<TreeViewListItemProps> = ({
tabIndex={-1}
>
<span className={css(styles.treeViewNodeToggleIcon)}>
<RhMicronsCaretDownIcon />
<RhMicronsCaretRightIcon />
</span>
</ToggleComponent>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ exports[`Matches snapshot with children 1`] = `
width="1em"
>
<path
d="M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"
d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
/>
</svg>
</span>
Expand Down
4 changes: 4 additions & 0 deletions packages/react-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [7.6.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@7.6.0...@patternfly/react-docs@7.6.1) (2026-08-03)

**Note:** Version bump only for package @patternfly/react-docs

# [7.6.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@7.6.0-prerelease.10...@patternfly/react-docs@7.6.0) (2026-07-01)

**Note:** Version bump only for package @patternfly/react-docs
Expand Down
6 changes: 3 additions & 3 deletions packages/react-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@patternfly/react-docs",
"description": "PatternFly React Docs",
"version": "7.6.0",
"version": "7.6.1",
"publishConfig": {
"access": "public",
"tag": "prerelease"
Expand All @@ -23,7 +23,7 @@
"test:a11y": "patternfly-a11y --config patternfly-a11y.config"
},
"dependencies": {
"@patternfly/patternfly": "^6.6.0",
"@patternfly/patternfly": "6.6.1",
"@patternfly/react-charts": "workspace:^",
"@patternfly/react-code-editor": "workspace:^",
"@patternfly/react-core": "workspace:^",
Expand All @@ -37,7 +37,7 @@
"victory": "^37.3.6"
},
"devDependencies": {
"@patternfly/documentation-framework": "^6.36.8",
"@patternfly/documentation-framework": "^6.40.0",
"@patternfly/patternfly-a11y": "5.1.0"
},
"keywords": [
Expand Down
4 changes: 4 additions & 0 deletions packages/react-drag-drop/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [6.6.1](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-drag-drop@6.6.0...@patternfly/react-drag-drop@6.6.1) (2026-08-03)

**Note:** Version bump only for package @patternfly/react-drag-drop

# [6.6.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-drag-drop@6.6.0-prerelease.9...@patternfly/react-drag-drop@6.6.0) (2026-07-01)

**Note:** Version bump only for package @patternfly/react-drag-drop
Expand Down
2 changes: 1 addition & 1 deletion packages/react-drag-drop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/react-drag-drop",
"version": "6.6.0",
"version": "6.6.1",
"description": "PatternFly drag and drop solution",
"main": "dist/js/index.js",
"module": "dist/esm/index.js",
Expand Down
Loading
Loading