Skip to content

Commit

Permalink
Merge branch 'patternfly:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
wise-king-sullyman authored Mar 18, 2024
2 parents c75816d + 26de940 commit 67a663b
Show file tree
Hide file tree
Showing 10 changed files with 460 additions and 254 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
]
},
"devDependencies": {
"@patternfly/patternfly": "5.2.0-prerelease.7",
"@patternfly/react-code-editor": "5.2.0-prerelease.50",
"@patternfly/react-core": "5.2.0-prerelease.49",
"@patternfly/react-table": "5.2.0-prerelease.49",
"@patternfly/patternfly": "5.2.1",
"@patternfly/react-code-editor": "5.2.2",
"@patternfly/react-core": "5.2.2",
"@patternfly/react-table": "5.2.2",
"@octokit/rest": "^19.0.7",
"glob": "^8.1.0",
"lerna": "^6.4.1",
Expand Down
30 changes: 30 additions & 0 deletions packages/ast-helpers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,36 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 1.6.0 (2024-03-13)


### Features

* **deps:** version bump and release notes for 5.2.2 patch release ([#3919](https://github.com/patternfly/patternfly-org/issues/3919)) ([94d3654](https://github.com/patternfly/patternfly-org/commit/94d3654768f42f2ae7b3c0734d1e5f211cd33ff6))





## 1.5.1 (2024-03-12)

**Note:** Version bump only for package @patternfly/ast-helpers





# 1.5.0 (2024-03-08)


### Features

* **deps:** version bump for 5.2.1 release ([#3913](https://github.com/patternfly/patternfly-org/issues/3913)) ([46cc8b7](https://github.com/patternfly/patternfly-org/commit/46cc8b70e06b9bda61067beba57d928e428b73c5))





## 1.4.3 (2024-02-27)

**Note:** Version bump only for package @patternfly/ast-helpers
Expand Down
2 changes: 1 addition & 1 deletion packages/ast-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@patternfly/ast-helpers",
"description": "Acorn AST helpers for working with live code",
"version": "1.4.3",
"version": "1.6.0",
"author": "Red Hat",
"license": "MIT",
"publishConfig": {
Expand Down
30 changes: 30 additions & 0 deletions packages/documentation-framework/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,36 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 5.6.0 (2024-03-13)


### Features

* **deps:** version bump and release notes for 5.2.2 patch release ([#3919](https://github.com/patternfly/patternfly-org/issues/3919)) ([94d3654](https://github.com/patternfly/patternfly-org/commit/94d3654768f42f2ae7b3c0734d1e5f211cd33ff6))





## 5.5.1 (2024-03-12)

**Note:** Version bump only for package @patternfly/documentation-framework





# 5.5.0 (2024-03-08)


### Features

* **deps:** version bump for 5.2.1 release ([#3913](https://github.com/patternfly/patternfly-org/issues/3913)) ([46cc8b7](https://github.com/patternfly/patternfly-org/commit/46cc8b70e06b9bda61067beba57d928e428b73c5))





## 5.4.3 (2024-02-27)

**Note:** Version bump only for package @patternfly/documentation-framework
Expand Down
12 changes: 6 additions & 6 deletions packages/documentation-framework/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@patternfly/documentation-framework",
"description": "A framework to build documentation for PatternFly.",
"version": "5.4.3",
"version": "5.6.0",
"author": "Red Hat",
"license": "MIT",
"private": false,
Expand All @@ -17,7 +17,7 @@
"@babel/plugin-transform-react-jsx": "7.17.12",
"@babel/preset-env": "7.18.2",
"@mdx-js/util": "1.6.16",
"@patternfly/ast-helpers": "^1.4.3",
"@patternfly/ast-helpers": "^1.6.0",
"@reach/router": "npm:@gatsbyjs/[email protected]",
"autoprefixer": "9.8.6",
"babel-loader": "9.1.2",
Expand Down Expand Up @@ -77,10 +77,10 @@
"webpack-merge": "5.8.0"
},
"peerDependencies": {
"@patternfly/patternfly": "5.2.0-prerelease.7",
"@patternfly/react-code-editor": "5.2.0-prerelease.50",
"@patternfly/react-core": "5.2.0-prerelease.49",
"@patternfly/react-table": "5.2.0-prerelease.49",
"@patternfly/patternfly": "5.2.1",
"@patternfly/react-code-editor": "5.2.2",
"@patternfly/react-core": "5.2.2",
"@patternfly/react-table": "5.2.2",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
}
Expand Down
52 changes: 50 additions & 2 deletions packages/documentation-framework/versions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,57 @@
{
"Releases": [
{
"name": "5.2.2",
"date": "2024-03-12",
"latest": true,
"versions": {
"@patternfly/patternfly": "5.2.1",
"@patternfly/react-charts": "7.2.2",
"@patternfly/react-code-editor": "5.2.2",
"@patternfly/react-core": "5.2.2",
"@patternfly/react-icons": "5.2.1",
"@patternfly/react-styles": "5.2.1",
"@patternfly/react-table": "5.2.2",
"@patternfly/react-drag-drop": "5.2.2",
"@patternfly/react-tokens": "5.2.1",
"@patternfly/react-catalog-view-extension": "5.0.0",
"@patternfly/react-component-groups": "5.1.0",
"@patternfly/react-console": "5.0.0",
"@patternfly/react-log-viewer": "5.2.0",
"@patternfly/react-topology": "5.2.1",
"@patternfly/react-user-feedback": "5.0.0",
"@patternfly/react-virtualized-extension": "5.0.0",
"@patternfly/quickstarts": "5.0.0"
}
},
{
"name": "5.2.1",
"date": "2024-03-01",
"hidden": true,
"versions": {
"@patternfly/patternfly": "5.2.1",
"@patternfly/react-charts": "7.2.2",
"@patternfly/react-code-editor": "5.2.1",
"@patternfly/react-core": "5.2.1",
"@patternfly/react-icons": "5.2.1",
"@patternfly/react-styles": "5.2.1",
"@patternfly/react-table": "5.2.1",
"@patternfly/react-drag-drop": "5.2.1",
"@patternfly/react-tokens": "5.2.1",
"@patternfly/react-catalog-view-extension": "5.0.0",
"@patternfly/react-component-groups": "5.1.0",
"@patternfly/react-console": "5.0.0",
"@patternfly/react-log-viewer": "5.2.0",
"@patternfly/react-topology": "5.2.1",
"@patternfly/react-user-feedback": "5.0.0",
"@patternfly/react-virtualized-extension": "5.0.0",
"@patternfly/quickstarts": "5.0.0"
}
},
{
"name": "5.2.0",
"date": "2024-01-17",
"latest": true,
"hidden": true,
"versions": {
"@patternfly/patternfly": "5.2.0",
"@patternfly/react-charts": "7.2.0",
Expand All @@ -15,7 +63,7 @@
"@patternfly/react-drag-drop": "5.2.0",
"@patternfly/react-tokens": "5.2.0",
"@patternfly/react-catalog-view-extension": "5.0.0",
"@patternfly/react-component-groups": "5.0.0",
"@patternfly/react-component-groups": "5.1.0",
"@patternfly/react-console": "5.0.0",
"@patternfly/react-log-viewer": "5.2.0",
"@patternfly/react-topology": "5.2.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/documentation-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"@patternfly/quickstarts": "^5.1.0",
"@patternfly/react-catalog-view-extension": "5.0.0",
"@patternfly/react-console": "5.0.0",
"@patternfly/react-docs": "6.2.0-prerelease.52",
"@patternfly/react-docs": "6.2.2",
"@patternfly/react-log-viewer": "5.1.0",
"@patternfly/react-topology": "5.2.1",
"@patternfly/react-user-feedback": "5.0.0",
"@patternfly/react-component-groups": "5.1.0-prerelease.2",
"@patternfly/react-component-groups": "5.1.0",
"@patternfly/react-virtualized-extension": "5.0.0",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,46 @@ id: Skip to content
section: components
---

A **skip to content** is a component that allows screen reader and keyboard users to bypass navigation rather than tabbing through it.
import { Checkbox, List, ListItem } from '@patternfly/react-core';

**Keyboard users** should be able to find the skip to content using **Tab** at the start of a page with navigation. They should be able to select the skip to content using **Enter**. A skip to content does not trap tab focus. It is the first tabbable element on a page, but can be tabbed past and into the navigation of a page if the user prefers.
## Accessibility

**Screen reader users** should also be able to navigate to skip to content using **Tab** and select it to skip past the navigation of a page.
To implement an accessible PatternFly **skip to content**:

## To make skip to content accessible:
- Render the skip to content as the first focusable element on the page.
- Ensure that the skip to content href is properly linked to the main content of the page. You may have to add context to the href if there are any query parameters in the URL.
- If you're using the page component with the skip to content, we add a tabindex="-1" for you. If you are using the skip to content on its own, give the target of the skip to content link a tabindex of -1. Some browsers require this attribute to make this component work consistently.

## Testing

At a minimum, a skip to content should meet the following criteria:

<List isPlain>
<ListItem>
<Checkbox id="skip-to-content-a11y-checkbox-1" label="The skip to content is the first focusable element on the page." description="When content is repeated on several pages - such as actions in a header or navigation links in a sidebar - users navigating via keyboard or other assistive technologies would need to navigate through that content every time. Placing a skip to content as the first focusable element helps users avoid this repeated content." />
</ListItem>
<ListItem>
<Checkbox id="skip-to-content-a11y-checkbox-2" label={<span>The skip to content's <code className="ws-code">href</code> is linked to the main content of the page.</span>} />
</ListItem>
<ListItem>
<Checkbox id="skip-to-content-a11y-checkbox-3" label="Standard keyboard navigation can be used to navigate between the skip to content and other focusable elements." description={<span>Depending on where focus is on the page, <kbd>Tab</kbd> navigates to the skip to content or the next focusable element, and <kbd>Shift</kbd> + <kbd>Tab</kbd> navigates to the previous focusable element or the skip to content. Since the skip to content should be the first focusable element on a page, the previous focusable element may typically be an item in the browser toolbar.</span>} />
</ListItem>
<ListItem>
<Checkbox id="skip-to-content-a11y-checkbox-4" label="Standard keyboard interaction can be used to activate the skip to content." description={<span><kbd>Enter</kbd> is typically the only key that activates links.</span>} />
</ListItem>
</List>

## React customization

The following React props have been provided for more fine-tuned control over accessibility.

| Prop | Applied to | Reason |
|---|---|---|
| `href="[id of the main content container]"` | `SkipToContent` | Links the skip to content to the main content. Typically this will be a jump link, e.g. `href="#main"`. |

## HTML/CSS customization

The following HTML attributes and PatternFly classes can be used for more fine-tuned control over accessibility.

| Attribute or class | Applied to | Reason |
|---|---|---|
| `href="[id of the main content container]"` | `.pf-v5-c-skip-to-content > a.pf-v5-c-button` | Links the skip to content to the main content. Typically this will be a jump link, e.g. `href="#main"`. |
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,54 @@ section: get-started
import './get-started.css';
import { Divider } from '@patternfly/react-core';

## PatternFly 5.2.2

PatternFly 5.2.2 is now live! This was a patch release to fix a significant bug that was found.

### Promoted package versions

- patternfly/patternfly-react ([changelog](https://github.com/patternfly/patternfly-react/releases/tag/5.2.2))
- [@patternfly/react-code-editor@5.2.2](https://www.npmjs.com/package/@patternfly/react-code-editor/v/5.2.2)
- [@patternfly/react-core@5.2.2](https://www.npmjs.com/package/@patternfly/react-core/v/5.2.2)
- [@patternfly/react-drag-drop@5.2.2](https://www.npmjs.com/package/@patternfly/react-drag-drop/v/5.2.2)
- [@patternfly/react-table@5.2.2](https://www.npmjs.com/package/@patternfly/react-table/v/5.2.2)

### Fixed bugs
In this patch release, we:
- Corrected an issue that caused our menu component to crash when dynamically resetting menu items.

<Divider />

## PatternFly 5.2.1

PatternFly 5.2.1 is now live! This was a patch release to fix a few bugs that were found.

### Promoted package versions

- patternfly/patternfly ([changelog](https://github.com/patternfly/patternfly/releases/tag/patch-5.2.1))
- [@patternfly/patternfly@5.2.1](https://www.npmjs.com/package/@patternfly/patternfly/v/5.2.1)

- patternfly/patternfly-react ([changelog](https://github.com/patternfly/patternfly-react/releases/tag/5.2.1))
- [@patternfly/react-charts@7.2.2](https://www.npmjs.com/package/@patternfly/react-charts/v/7.2.2)
- [@patternfly/react-code-editor@5.2.1](https://www.npmjs.com/package/@patternfly/react-code-editor/v/5.2.1)
- [@patternfly/react-core@5.2.1](https://www.npmjs.com/package/@patternfly/react-core/v/5.2.1)
- [@patternfly/react-drag-drop@5.2.1](https://www.npmjs.com/package/@patternfly/react-drag-drop/v/5.2.1)
- [@patternfly/react-icons@5.2.1](https://www.npmjs.com/package/@patternfly/react-icons/v/5.2.1)
- [@patternfly/react-styles@5.2.1](https://www.npmjs.com/package/@patternfly/react-styles/v/5.2.1)
- [@patternfly/react-table@5.2.1](https://www.npmjs.com/package/@patternfly/react-table/v/5.2.1)
- [@patternfly/react-tokens@5.2.1](https://www.npmjs.com/package/@patternfly/react-tokens/v/5.2.1)

### Fixed bugs
In this patch release, we:
- Corrected issues with styles and intractability of cards in Chromium-based browsers.
- Additional details: https://github.com/orgs/patternfly/discussions/6381
- Added support for status modifiers on modal titles.
- Updated types used in react-charts to reflect changes in the Victory types.
- Reverted a previous type change within our clipboard copy component that was unintentionally breaking.
- Updated our code editor component to pass through more props to monaco-editor.

<Divider />

## PatternFly 5.2

PatternFly 5.2 is now live! Here are the highlights from this release.
Expand Down
Loading

0 comments on commit 67a663b

Please sign in to comment.