Skip to content

Commit 49fb1b7

Browse files
chore: Fix wording to meet guidelines (#3663)
1 parent 86616b7 commit 49fb1b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/internal/utils/__tests__/with-native-attributes.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ describe('WithNativeAttributes', () => {
136136
expect(element.id).toBe('override-id');
137137
expect(mockedWarnOnce).toHaveBeenCalledWith(
138138
'Button',
139-
'Overriding native attribute [id] which has a Cloudscape-provided value'
139+
'Overriding native attribute [id] which has a component-provided value'
140140
);
141141
});
142142

src/internal/utils/with-native-attributes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default React.forwardRef(
4949
// override other attributes, warning if it already exists
5050
} else {
5151
if (key in rest && !skipWarnings) {
52-
warnOnce('Button', `Overriding native attribute [${key}] which has a Cloudscape-provided value`);
52+
warnOnce('Button', `Overriding native attribute [${key}] which has a component-provided value`);
5353
}
5454
acc[key] = value;
5555
}

0 commit comments

Comments
 (0)