mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 14:59:07 +00:00
[Blocks] Fix links colors (#18325)
* Fix links not using design system color * Inherit text color in modifiers
This commit is contained in:
parent
3dc168a35e
commit
2937bb9237
@ -326,6 +326,7 @@ const Link = React.forwardRef(({ element, children, ...attributes }, forwardedRe
|
|||||||
ref={composedRefs}
|
ref={composedRefs}
|
||||||
href={element.url}
|
href={element.url}
|
||||||
onClick={handleOpenEditPopover}
|
onClick={handleOpenEditPopover}
|
||||||
|
color="primary600"
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</BaseLink>
|
</BaseLink>
|
||||||
@ -376,7 +377,7 @@ const Link = React.forwardRef(({ element, children, ...attributes }, forwardedRe
|
|||||||
) : (
|
) : (
|
||||||
<Flex direction="column" gap={4} alignItems="start" width="400px">
|
<Flex direction="column" gap={4} alignItems="start" width="400px">
|
||||||
<Typography>{elementText}</Typography>
|
<Typography>{elementText}</Typography>
|
||||||
<BaseLink href={element.url} target="_blank">
|
<BaseLink href={element.url} target="_blank" color="primary600">
|
||||||
{element.url}
|
{element.url}
|
||||||
</BaseLink>
|
</BaseLink>
|
||||||
<Flex justifyContent="end" width="100%" gap={2}>
|
<Flex justifyContent="end" width="100%" gap={2}>
|
||||||
|
@ -8,19 +8,23 @@ import styled from 'styled-components';
|
|||||||
|
|
||||||
const BoldText = styled(Typography).attrs({ fontWeight: 'bold' })`
|
const BoldText = styled(Typography).attrs({ fontWeight: 'bold' })`
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
|
color: inherit;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const ItalicText = styled(Typography)`
|
const ItalicText = styled(Typography)`
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
|
color: inherit;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const UnderlineText = styled(Typography).attrs({ textDecoration: 'underline' })`
|
const UnderlineText = styled(Typography).attrs({ textDecoration: 'underline' })`
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
|
color: inherit;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StrikeThroughText = styled(Typography).attrs({ textDecoration: 'line-through' })`
|
const StrikeThroughText = styled(Typography).attrs({ textDecoration: 'line-through' })`
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
|
color: inherit;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const InlineCode = styled.code`
|
const InlineCode = styled.code`
|
||||||
@ -29,6 +33,7 @@ const InlineCode = styled.code`
|
|||||||
padding: ${({ theme }) => `0 ${theme.spaces[2]}`};
|
padding: ${({ theme }) => `0 ${theme.spaces[2]}`};
|
||||||
font-family: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', Menlo, Consolas,
|
font-family: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', Menlo, Consolas,
|
||||||
monospace;
|
monospace;
|
||||||
|
color: inherit;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user