From b858eb87acdc8e95833f723fd87d57f337de6d3e Mon Sep 17 00:00:00 2001 From: Diwanshi Gadgil Date: Tue, 7 May 2024 10:28:21 -0400 Subject: [PATCH 1/8] docs: fix repo-status tag padding in mobile (#1551) * wrapping rh-tag inside a span to fix padding in mobile * wraps tagname and status tag inside a span --- docs/_plugins/shortcodes/repoStatus.cjs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 */` From c8046bf841fbeb14d0a52c72d27ec2ad3020ca08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benny=20Powers=20-=20=D7=A2=D7=9D=20=D7=99=D7=A9=D7=A8?= =?UTF-8?q?=D7=90=D7=9C=20=D7=97=D7=99!?= Date: Wed, 8 May 2024 18:43:04 +0300 Subject: [PATCH 2/8] chore: attempt to make builds less flakey (#1559) use wireit's file cache to hopefully prevent failures like https://github.com/RedHat-UX/red-hat-design-system/actions/runs/8988133555/job/24688276034 --- package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 42c6d29dce..0417ff83cb 100644 --- a/package.json +++ b/package.json @@ -158,7 +158,14 @@ ] }, "bundle": { - "command": "node scripts/bundle.js" + "command": "node scripts/bundle.js", + "files": [ + "elements/**/*.{ts,js,map}", + "elements/**/*.css" + ], + "output": [ + "rhds.min.js" + ] }, "analyze": { "command": "cem analyze && node scripts/cem-tokens.js && node scripts/system-tokens.js", From 727c7994ebaa787f39961c255131aeced480a7f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benny=20Powers=20-=20=D7=A2=D7=9D=20=D7=99=D7=A9=D7=A8?= =?UTF-8?q?=D7=90=D7=9C=20=D7=97=D7=99!?= Date: Thu, 9 May 2024 15:44:24 +0300 Subject: [PATCH 3/8] fix(card): header font (#1557) * fix(card): header fonts Closes #1516 Closes #1497 * docs(card): demo for image with heading * docs: changeset * fix: review comments * docs: review comments --- .changeset/shy-houses-arrive.md | 4 + elements/rh-card/demo/variants.html | 264 +++++++++++++------------- elements/rh-card/rh-card.css | 12 +- elements/rh-card/test/rh-card.spec.ts | 74 ++++---- 4 files changed, 187 insertions(+), 167 deletions(-) create mode 100644 .changeset/shy-houses-arrive.md 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/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 + +
+