File tree 2 files changed +14
-3
lines changed
packages/circuit-ui/components/Anchor
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @sumup-oss/circuit-ui " : patch
3
+ ---
4
+
5
+ Removed the ` color ` prop from the Anchor component's prop types as it's not supported.
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import { utilClasses } from '../../styles/utility.js';
33
33
34
34
import classes from './Anchor.module.css' ;
35
35
36
- export interface BaseProps extends BodyProps {
36
+ export interface BaseProps extends Omit < BodyProps , 'color' > {
37
37
children : ReactNode ;
38
38
/**
39
39
* Function that's called when the button is clicked.
@@ -44,8 +44,14 @@ export interface BaseProps extends BodyProps {
44
44
*/
45
45
ref ?: Ref < any > ;
46
46
}
47
- type LinkElProps = Omit < AnchorHTMLAttributes < HTMLAnchorElement > , 'onClick' > ;
48
- type ButtonElProps = Omit < ButtonHTMLAttributes < HTMLButtonElement > , 'onClick' > ;
47
+ type LinkElProps = Omit <
48
+ AnchorHTMLAttributes < HTMLAnchorElement > ,
49
+ 'onClick' | 'color'
50
+ > ;
51
+ type ButtonElProps = Omit <
52
+ ButtonHTMLAttributes < HTMLButtonElement > ,
53
+ 'onClick' | 'color'
54
+ > ;
49
55
50
56
export type AnchorProps = BaseProps & LinkElProps & ButtonElProps ;
51
57
You can’t perform that action at this time.
0 commit comments