diff --git a/packages/react-core/src/components/Modal/examples/Modal.md b/packages/react-core/src/components/Modal/examples/Modal.md index a9c1d5a550d..4ea23740717 100644 --- a/packages/react-core/src/components/Modal/examples/Modal.md +++ b/packages/react-core/src/components/Modal/examples/Modal.md @@ -102,7 +102,7 @@ To exclusively present information in a modal, remove the `header` and/or `foote ### Title icon -To add an icon before a modal’s title, use the `titleIconVariant`, which can be set to one of the predefined variants -- "success", "danger", "warning", "info", and "default" -- or to an imported custom icon. The following example uses a "warning" variant. +To add an icon before a modal’s title, use the `titleIconVariant`, which can be set to one of the predefined variants -- "success", "danger", "warning", "info", and "custom" -- or to an imported custom icon. The following example uses a "warning" variant. ```ts file="./ModalTitleIcon.tsx" diff --git a/packages/react-core/src/components/Popover/Popover.tsx b/packages/react-core/src/components/Popover/Popover.tsx index 0bee1389646..951cde0fe50 100644 --- a/packages/react-core/src/components/Popover/Popover.tsx +++ b/packages/react-core/src/components/Popover/Popover.tsx @@ -45,7 +45,7 @@ export interface PopoverProps { /** Severity variants for an alert popover. This modifies the color of the header to * match the severity. */ - alertSeverityVariant?: 'default' | 'info' | 'warning' | 'success' | 'danger'; + alertSeverityVariant?: 'custom' | 'info' | 'warning' | 'success' | 'danger'; /** The duration of the CSS fade transition animation. */ animationDuration?: number; /** The element to append the popover to. Defaults to "inline". */ @@ -210,7 +210,7 @@ export interface PopoverProps { } const alertStyle = { - default: styles.modifiers.custom, + custom: styles.modifiers.custom, info: styles.modifiers.info, success: styles.modifiers.success, warning: styles.modifiers.warning, diff --git a/packages/react-core/src/components/Popover/examples/PopoverAlert.tsx b/packages/react-core/src/components/Popover/examples/PopoverAlert.tsx index 023569db7ce..d9ce87c9d41 100644 --- a/packages/react-core/src/components/Popover/examples/PopoverAlert.tsx +++ b/packages/react-core/src/components/Popover/examples/PopoverAlert.tsx @@ -10,7 +10,7 @@ export const AlertPopover: React.FunctionComponent = () => { const [alertSeverityVariant, setAlertSeverityVariant] = React.useState('default'); const alertIcons = { - default: , + custom: , info: , success: , warning: , @@ -21,7 +21,7 @@ export const AlertPopover: React.FunctionComponent = () => { <>
Alert variant: - setAlertSeverityVariant(event.target.value)}> @@ -32,7 +32,7 @@ export const AlertPopover: React.FunctionComponent = () => {