diff --git a/docs/foundations/color/usage.md b/docs/foundations/color/usage.md index c809785f63..2153e9622d 100644 --- a/docs/foundations/color/usage.md +++ b/docs/foundations/color/usage.md @@ -10,16 +10,16 @@ subnav: collection: sortedColor order: 2 permalink: /foundations/color/usage/index.html -importElements: - - rh-alert - - rh-tag - - rh-table --- - - - + + ## Using color @@ -39,7 +39,7 @@ To learn more about our Red Hat red color, go to the [Brand standards](https://www.redhat.com/en/about/brand/standards) website. -

Usage Warning

+

Usage warning

Do not apply the Red Hat red color to text in dark environments unless it meets WCAG 2.1 AA requirements.

@@ -173,44 +173,20 @@ patterns like [alerts](/elements/alert), [badges](/elements/badge),

Usage Warning

-

The red-orange color is reserved for danger or error states, do not use it anywhere else.

+

The red-orange color is reserved for danger or error states. Do not use it anywhere else.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
StatusUse case
Note/TipUse purple to communicate helpful or important information.
NeutralUse gray to communicate information that will have no impact on a user.
SuccessUse green to communicate a success state.
CautionUse yellow to communicate that an issue can be avoided.
WarningUse orange to communicate that a destructive action might occur if an issue is not resolved.
Danger/ErrorUse red-orange to communicate a destructive action or critical error.
+ +| Status | Use case | +| ------- | --------------------------------------------------------------------------------------------------------------- | +| Neutral | Use gray to communicate information that will have no impact on a user. | +| Info | Use purple to communicate helpful or important information.
*Note:* "Info" was previously called "note/tip." | +| Success | Use green to communicate a success state. | +| Warning | Use yellow to communicate that a destructive action might occur if an issue is not resolved. | +| Caution | Use orange to communicate that an issue can be avoided. | +| Danger | Use red-orange to communicate a destructive action or critical error. | +
@@ -280,4 +256,4 @@ using elements and patterns from the desaturated theme instead.

Foundations

To learn how to use our other foundations in your designs, visit the foundations section.

-
\ No newline at end of file + diff --git a/patches/@patternfly+pfe-core+4.0.2.patch b/patches/@patternfly+pfe-core+4.0.2.patch new file mode 100644 index 0000000000..0d147a66fc --- /dev/null +++ b/patches/@patternfly+pfe-core+4.0.2.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/@patternfly/pfe-core/ssr-shims.js b/node_modules/@patternfly/pfe-core/ssr-shims.js +index d432769..c7a30fb 100644 +--- a/node_modules/@patternfly/pfe-core/ssr-shims.js ++++ b/node_modules/@patternfly/pfe-core/ssr-shims.js +@@ -42,6 +42,8 @@ globalThis.IntersectionObserver ?? (globalThis.IntersectionObserver = ObserverSh + // @ts-expect-error: this runs in node + globalThis.MutationObserver ?? (globalThis.MutationObserver = ObserverShim); + // @ts-expect-error: this runs in node ++globalThis.ResizeObserver ?? (globalThis.ResizeObserver = ObserverShim); ++// @ts-expect-error: this runs in node + globalThis.getComputedStyle ?? (globalThis.getComputedStyle = function () { + return { + getPropertyPriority() {