diff --git a/.changeset/curly-ways-march.md b/.changeset/curly-ways-march.md new file mode 100644 index 0000000000..c81ecdc195 --- /dev/null +++ b/.changeset/curly-ways-march.md @@ -0,0 +1,4 @@ +--- +"@rhds/elements": patch +--- +React: add generated react wrappers to NPM package diff --git a/.changeset/metal-birds-share.md b/.changeset/metal-birds-share.md new file mode 100644 index 0000000000..5dde4075a1 --- /dev/null +++ b/.changeset/metal-birds-share.md @@ -0,0 +1,5 @@ +--- +"@rhds/elements": major +--- +DELETE THIS FILE BEFORE MERGING +chore: changeset validating github action diff --git a/.changeset/rh-cta-lightdom-shim.md b/.changeset/rh-cta-lightdom-shim.md new file mode 100644 index 0000000000..e44cf02c78 --- /dev/null +++ b/.changeset/rh-cta-lightdom-shim.md @@ -0,0 +1,5 @@ +--- +"@rhds/elements": minor +--- + +``: 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. diff --git a/.changeset/shy-houses-arrive.md b/.changeset/shy-houses-arrive.md new file mode 100644 index 0000000000..3cf7b3bed1 --- /dev/null +++ b/.changeset/shy-houses-arrive.md @@ -0,0 +1,4 @@ +--- +"@rhds/elements": patch +--- +``: applied heading font to card headings diff --git a/.changeset/wet-feet-pull.md b/.changeset/wet-feet-pull.md new file mode 100644 index 0000000000..1c351913b7 --- /dev/null +++ b/.changeset/wet-feet-pull.md @@ -0,0 +1,4 @@ +--- +"@rhds/elements": patch +--- +``: removes landmark semantics from card, simplifying page navigation for screen reader users diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml new file mode 100644 index 0000000000..3bb682f067 --- /dev/null +++ b/.github/workflows/validate-pr.yml @@ -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 }); diff --git a/docs/_includes/layout-base.njk b/docs/_includes/layout-base.njk index 32f1f44865..ed6a2f9847 100644 --- a/docs/_includes/layout-base.njk +++ b/docs/_includes/layout-base.njk @@ -26,6 +26,7 @@ + {% sassFile false %} diff --git a/docs/_plugins/shortcodes/repoStatus.cjs b/docs/_plugins/shortcodes/repoStatus.cjs index 90695662ae..746488e5e2 100644 --- a/docs/_plugins/shortcodes/repoStatus.cjs +++ b/docs/_plugins/shortcodes/repoStatus.cjs @@ -250,10 +250,13 @@ function repoStatusTable() { return /* html */` - ${listItem.name} - ${listItem.overallStatus !== 'Available' ? ` - ${listItem.overallStatus}${STATUS_LEGEND[listItem.overallStatus].icon} - ` : ''} + + ${listItem.name} + ${listItem.overallStatus !== 'Available' ? + ` + ${listItem.overallStatus}${STATUS_LEGEND[listItem.overallStatus].icon} + ` : ''} + ${listItem.libraries.map(lib => { return /* html */` diff --git a/docs/get-started/designers.md b/docs/get-started/designers.md index 5fa0e3fc87..be53c9d084 100644 --- a/docs/get-started/designers.md +++ b/docs/get-started/designers.md @@ -40,6 +40,10 @@ Our design system libraries and the documentation website offer assets and guida

Elements and patterns

Our libraries include elements and patterns you can use to create digital experiences.

+
+

Accessibility

+

Designer-specific guidelines equip you with the information to create inclusive digital experiences.

+
## Access Figma diff --git a/docs/get-started/developers/index.md b/docs/get-started/developers/index.md index 462f43a14b..d25fdc1ec7 100644 --- a/docs/get-started/developers/index.md +++ b/docs/get-started/developers/index.md @@ -32,7 +32,7 @@ Our design system libraries and the documentation website offer assets and guida

Documentation

-

This website offers guidance about how to use our elements and patterns correctly.

+

This website offers guidance about how to use our elements and patterns. Learn how to apply them accessibily with developer-specific guidelines.

GitHub repositories

diff --git a/elements/rh-card/demo/variants.html b/elements/rh-card/demo/variants.html index 9cea4f5ec8..e2c1a727e0 100644 --- a/elements/rh-card/demo/variants.html +++ b/elements/rh-card/demo/variants.html @@ -1,128 +1,130 @@ - -

Default card, slotted content and footer

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Nullam eleifend elit sed est egestas, a sollicitudin mauris - tincidunt. Pellentesque vel dapibus risus. Nullam aliquam - felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

- - Call to action - -
- - -

Slotted title, content, and footer

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Nullam eleifend elit sed est egestas, a sollicitudin mauris - tincidunt. Pellentesque vel dapibus risus. Nullam aliquam - felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

- - Call to action - -
- - -

Lighter color palette

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Nullam eleifend elit sed est egestas, a sollicitudin mauris - tincidunt. Pellentesque vel dapibus risus. Nullam aliquam - felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

- - Call to action - -
- - -

Lighter color palette and custom header

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Nullam eleifend elit sed est egestas, a sollicitudin mauris - tincidunt. Pellentesque vel dapibus risus. Nullam aliquam - felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

- - Call to action - -
- - -

Custom header

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Nullam eleifend elit sed est egestas, a sollicitudin mauris - tincidunt. Pellentesque vel dapibus risus. Nullam aliquam - felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

- - Call to action - -
- - -

Center aligned content, footer

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Nullam eleifend elit sed est egestas, a sollicitudin mauris - tincidunt. Pellentesque vel dapibus risus. Nullam aliquam - felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

- - Call to action - -
- - -

End aligned content, footer

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Nullam eleifend elit sed est egestas, a sollicitudin mauris - tincidunt. Pellentesque vel dapibus risus. Nullam aliquam - felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

- - Call to action - -
- - - +
+ +

Default card, slotted content and footer

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Nullam eleifend elit sed est egestas, a sollicitudin mauris + tincidunt. Pellentesque vel dapibus risus. Nullam aliquam + felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

+ + Call to action + +
+ + +

Slotted title, content, and footer

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Nullam eleifend elit sed est egestas, a sollicitudin mauris + tincidunt. Pellentesque vel dapibus risus. Nullam aliquam + felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

+ + Call to action + +
+ + +

Lighter color palette

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Nullam eleifend elit sed est egestas, a sollicitudin mauris + tincidunt. Pellentesque vel dapibus risus. Nullam aliquam + felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

+ + Call to action + +
+ + +

Lighter color palette and custom header

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Nullam eleifend elit sed est egestas, a sollicitudin mauris + tincidunt. Pellentesque vel dapibus risus. Nullam aliquam + felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

+ + Call to action + +
+ + +

Custom header

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Nullam eleifend elit sed est egestas, a sollicitudin mauris + tincidunt. Pellentesque vel dapibus risus. Nullam aliquam + felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

+ + Call to action + +
+ + +

Center aligned content, footer

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Nullam eleifend elit sed est egestas, a sollicitudin mauris + tincidunt. Pellentesque vel dapibus risus. Nullam aliquam + felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

+ + Call to action + +
+ + +

End aligned content, footer

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Nullam eleifend elit sed est egestas, a sollicitudin mauris + tincidunt. Pellentesque vel dapibus risus. Nullam aliquam + felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

+ + Call to action + +
+ + + + A placeholder image in a card header slot + + + + +

Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Nullam eleifend elit sed est egestas, a sollicitudin mauris + tincidunt. Pellentesque vel dapibus risus. Nullam aliquam + felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

+ + Call to action + +
+ + + + A placeholder image in a card header slot + + + + +

Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Nullam eleifend elit sed est egestas, a sollicitudin mauris + tincidunt. Pellentesque vel dapibus risus. Nullam aliquam + felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

+ + Call to action + +
+ + + A placeholder image in a card header slot - -

Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Nullam eleifend elit sed est egestas, a sollicitudin mauris - tincidunt. Pellentesque vel dapibus risus. Nullam aliquam - felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

- - Call to action - -
- - - - A placeholder image in a card header slot - - - - -

Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Nullam eleifend elit sed est egestas, a sollicitudin mauris - tincidunt. Pellentesque vel dapibus risus. Nullam aliquam - felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

- - Call to action - -
- - - - A placeholder image in a card header slot - - - - -

Card with slotted image header. Full width image.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Nullam eleifend elit sed est egestas, a sollicitudin mauris - tincidunt. Pellentesque vel dapibus risus. Nullam aliquam - felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

- - Call to action - -
+ +

Card with slotted image header. Full width image.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Nullam eleifend elit sed est egestas, a sollicitudin mauris + tincidunt. Pellentesque vel dapibus risus. Nullam aliquam + felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.

+ + Call to action + + +