mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
updated modifiers style (#18373)
This commit is contained in:
parent
da790035c6
commit
facec501f5
@ -4,27 +4,29 @@ import { Typography } from '@strapi/design-system';
|
||||
import { Bold, Italic, Underline, StrikeThrough, Code } from '@strapi/icons';
|
||||
import { Editor } from 'slate';
|
||||
import { useSlate } from 'slate-react';
|
||||
import styled from 'styled-components';
|
||||
import styled, { css } from 'styled-components';
|
||||
|
||||
const BoldText = styled(Typography).attrs({ fontWeight: 'bold' })`
|
||||
const stylesToInherit = css`
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
line-height: inherit;
|
||||
`;
|
||||
|
||||
const BoldText = styled(Typography).attrs({ fontWeight: 'bold' })`
|
||||
${stylesToInherit}
|
||||
`;
|
||||
|
||||
const ItalicText = styled(Typography)`
|
||||
font-style: italic;
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
${stylesToInherit}
|
||||
`;
|
||||
|
||||
const UnderlineText = styled(Typography).attrs({ textDecoration: 'underline' })`
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
${stylesToInherit}
|
||||
`;
|
||||
|
||||
const StrikeThroughText = styled(Typography).attrs({ textDecoration: 'line-through' })`
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
${stylesToInherit}
|
||||
`;
|
||||
|
||||
const InlineCode = styled.code`
|
||||
|
Loading…
x
Reference in New Issue
Block a user