Skip to content

Commit

Permalink
Merge branch 'staging/charmander' into fix/cta/add-focus-style
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers authored May 21, 2024
2 parents 78eef82 + f1314e8 commit 899fb66
Show file tree
Hide file tree
Showing 40 changed files with 2,841 additions and 1,379 deletions.
4 changes: 4 additions & 0 deletions .changeset/curly-ways-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
"@rhds/elements": patch
---
React: add generated react wrappers to NPM package
4 changes: 4 additions & 0 deletions .changeset/eager-dolls-wear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
"@rhds/elements": patch
---
`<rh-site-status>`: automatically fetch status for the current domain
5 changes: 5 additions & 0 deletions .changeset/nice-kangaroos-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rhds/elements": minor
---

`<rh-pagination>`: Added dark color palette
5 changes: 5 additions & 0 deletions .changeset/rh-cta-lightdom-shim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rhds/elements": minor
---

`<rh-cta>`: Added `rh-cta-lightdom-shim.css` as an optional file to help reduce layout shift before element is defined, where declarative shadow DOM is not an option.
4 changes: 4 additions & 0 deletions .changeset/shy-houses-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
"@rhds/elements": patch
---
`<rh-card>`: applied heading font to card headings
4 changes: 4 additions & 0 deletions .changeset/wet-feet-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
"@rhds/elements": patch
---
`<rh-card>`: removes landmark semantics from card, simplifying page navigation for screen reader users
25 changes: 25 additions & 0 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Validate PRs

on:
pull_request:
types:
- opened
- reopened
- synchronize
- edited

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm i semantic-release @changesets/read --prefer-offline
- uses: actions/github-script@v7
with:
script: |
const { validate } = await import('${{ github.workspace }}/scripts/validate-prs.js');
await validate({ context });
1 change: 1 addition & 0 deletions docs/_includes/layout-base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<link rel="stylesheet" href="{{ '/assets/prism.css' | url }}" >
<link rel="stylesheet" href="{{ '/assets/rhds.min.css' | url }}">
<link rel="stylesheet" href="{{ '/assets/packages/@rhds/elements/elements/rh-footer/rh-footer-lightdom.css' | url }}">
<link rel="stylesheet" href="{{ '/assets/packages/@rhds/elements/elements/rh-cta/rh-cta-lightdom-shim.css' | url }}">
<link rel="stylesheet" href="{{ '/assets/packages/@rhds/elements/elements/rh-subnav/rh-subnav-lightdom.css' | url }}">

{% sassFile false %}
Expand Down
2 changes: 1 addition & 1 deletion docs/_plugins/rhds.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const path = require('node:path');
const _slugify = require('slugify');
const slugify = typeof _slugify === 'function' ? _slugify : _slugify.default;
const capitalize = require('capitalize');
const { glob } = require('glob');
const exec = require('node:util').promisify(require('node:child_process').exec);
const cheerio = require('cheerio');
const RHDSAlphabetizeTagsPlugin = require('./alphabetize-tags.cjs');
Expand Down Expand Up @@ -283,6 +282,7 @@ module.exports = function(eleventyConfig, { tagsToAlphabetize }) {
}

try {
const { glob } = await import('glob');
/** @type {(import('@patternfly/pfe-tools/11ty/DocsPage').DocsPage & { repoStatus?: any[] })[]} */
const elements = await eleventyConfig.globalData?.elements();
const filePaths = (await glob(`elements/*/docs/*.md`, { cwd: process.cwd() }))
Expand Down
11 changes: 7 additions & 4 deletions docs/_plugins/shortcodes/repoStatus.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,13 @@ function repoStatusTable() {
return /* html */`
<tr>
<td data-label="Name">
<a href="/elements/${listItem.name}">${listItem.name}</a>
${listItem.overallStatus !== 'Available' ? `<rh-tag color="${STATUS_LEGEND[listItem.overallStatus].color}" variant="${STATUS_LEGEND[listItem.overallStatus].variant}">
${listItem.overallStatus}${STATUS_LEGEND[listItem.overallStatus].icon}
</rh-tag>` : ''}
<span>
<a href="/elements/${listItem.name}">${listItem.name}</a>
${listItem.overallStatus !== 'Available' ?
`<rh-tag color="${STATUS_LEGEND[listItem.overallStatus].color}" variant="${STATUS_LEGEND[listItem.overallStatus].variant}">
${listItem.overallStatus}${STATUS_LEGEND[listItem.overallStatus].icon}
</rh-tag>` : ''}
</span>
</td>
${listItem.libraries.map(lib => {
return /* html */`
Expand Down
4 changes: 4 additions & 0 deletions docs/get-started/designers.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Our design system libraries and the documentation website offer assets and guida
<h3>Elements and patterns</h3>
<p>Our libraries include <a href="/elements">elements</a> and <a href="/patterns">patterns</a> you can use to create digital experiences.</p>
</div>
<div>
<h3>Accessibility</h3>
<p><a href="/accessibility/design/">Designer-specific guidelines</a> equip you with the information to create inclusive digital experiences.</p>
</div>
</div>

## Access Figma
Expand Down
2 changes: 1 addition & 1 deletion docs/get-started/developers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Our design system libraries and the documentation website offer assets and guida
</div>
<div>
<h3>Documentation</h3>
<p>This website offers guidance about how to use our <a href="elements">elements</a> and <a href="patterns">patterns</a> correctly.</p>
<p>This website offers guidance about how to use our <a href="elements">elements</a> and <a href="patterns">patterns</a>. Learn how to apply them accessibily with <a href="/accessibility/development/">developer-specific guidelines</a>.</p>
</div>
<div>
<h3>GitHub repositories</h3>
Expand Down
Loading

0 comments on commit 899fb66

Please sign in to comment.