-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Link] Refinement #14162
[Link] Refinement #14162
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,11 +117,6 @@ Link.propTypes = { | |
* Either a string to use a DOM element or a component. | ||
*/ | ||
component: componentPropType, | ||
/** | ||
* The target of the link. You can read about this property on the | ||
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#Attributes) | ||
*/ | ||
target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Didn't we decide anyway that we don't validate DOM attributes? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you mean by we don't validate DOM attributes? Oh yeah. We don't need to document it. It's making the component lighter :). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What I mean by this is that we don't validate props that we simply forward.
Oh and we need to remove the default value for |
||
/** | ||
* `classes` property applied to the [`Typography`](/api/typography/) element. | ||
*/ | ||
|
@@ -140,7 +135,6 @@ Link.defaultProps = { | |
block: false, | ||
color: 'primary', | ||
component: 'a', | ||
target: '_self', | ||
underline: 'hover', | ||
variant: 'inherit', | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the dependency on the CSS injection order.