Skip to content

Commit da624cc

Browse files
committed
[cleanup]
1 parent 902ccad commit da624cc

File tree

4 files changed

+49
-109
lines changed

4 files changed

+49
-109
lines changed

packages/patternfly-4/react-core/src/components/Alert/Alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const Alert: React.FunctionComponent<AlertProps & InjectedOuiaProps> = ({
4848
variant = AlertVariant.info,
4949
isInline = false,
5050
isLiveRegion = false,
51-
variantLabel = `${capitalize(variant)} alert`,
51+
variantLabel = `${capitalize(variant)} alert:`,
5252
'aria-label': ariaLabel = `${capitalize(variant)} Alert`,
5353
action = null,
5454
title,

packages/patternfly-4/react-core/src/components/Alert/__tests__/Alert.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Object.values(AlertVariant).forEach(variant => {
4747
test('Action Close Button', () => {
4848
const onClose = jest.fn();
4949
const view = mount(
50-
<Alert variant={variant} action={<AlertActionCloseButton title={`Sample ${variant} alert`} variantLabel={`${variant} alert`} aria-label="Close" onClose={onClose} />} title={`Sample ${variant} alert`}>
50+
<Alert variant={variant} action={<AlertActionCloseButton aria-label="Close" onClose={onClose} />} title={`Sample ${variant} alert`}>
5151
Some alert
5252
</Alert>
5353
);

0 commit comments

Comments
 (0)