updated modifiers style (#18373)

This commit is contained in:
Madhuri Sandbhor 2023-10-10 17:26:54 +05:30 committed by GitHub
parent da790035c6
commit facec501f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`