From cd273f496afde1d4731940a533e64bfaa10081c7 Mon Sep 17 00:00:00 2001 From: Weslen do Nascimento Date: Tue, 3 Mar 2020 06:43:21 -0300 Subject: [PATCH] [Link] Fix color mismatch with Typography component (#19949) --- docs/pages/api/link.md | 2 +- packages/material-ui/src/Link/Link.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/pages/api/link.md b/docs/pages/api/link.md index 9de11a0869bed6..a4ba6024c47304 100644 --- a/docs/pages/api/link.md +++ b/docs/pages/api/link.md @@ -26,7 +26,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi |:-----|:-----|:--------|:------------| | children * | node | | The content of the link. | | classes | object | | Override or extend the styles applied to the component. See [CSS API](#css) below for more details. | -| color | 'default'
| 'error'
| 'inherit'
| 'primary'
| 'secondary'
| 'textPrimary'
| 'textSecondary'
| 'primary' | The color of the link. | +| color | 'initial'
| 'inherit'
| 'primary'
| 'secondary'
| 'textPrimary'
| 'textSecondary'
| 'error'
| 'primary' | The color of the link. | | component | element type | 'a' | The component used for the root node. Either a string to use a DOM element or a component.
⚠️ [Needs to be able to hold a ref](/guides/composition/#caveat-with-refs). | | TypographyClasses | object | | `classes` prop applied to the [`Typography`](/api/typography/) element. | | underline | 'none'
| 'hover'
| 'always'
| 'hover' | Controls when the link should have an underline. | diff --git a/packages/material-ui/src/Link/Link.js b/packages/material-ui/src/Link/Link.js index eb50b7fcc64f37..d00b636f2f2342 100644 --- a/packages/material-ui/src/Link/Link.js +++ b/packages/material-ui/src/Link/Link.js @@ -130,13 +130,13 @@ Link.propTypes = { * The color of the link. */ color: PropTypes.oneOf([ - 'default', - 'error', + 'initial', 'inherit', 'primary', 'secondary', 'textPrimary', 'textSecondary', + 'error', ]), /** * The component used for the root node.