I'm trying to display on my pdf doc icons with colors:
main.jsx :
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { PDFExport } from '@progress/kendo-react-pdf';
import EmailIcon from '@mui/icons-material/Email';
import { Icon } from '@progress/kendo-react-common';
import './styles.css';
const App = () => {
const pdfExportComponent = React.useRef(null);
return (
<div>
<button
onClick={() => {
pdfExportComponent.current.save();
}}
>
Export PDF
</button>
<PDFExport
paperSize="A4"
ref={pdfExportComponent}
>
p
<Icon name="twitter" style={{ color: 'red' }} />
<EmailIcon cl sx={{ fontSize: 15, color: 'blue' }} />
</PDFExport>
</div>
);
};
ReactDOM.render(<App />, document.querySelector('my-app'));
But <Icon>
disappeared , and <EmailIcon>
is available only in black.
In styles.css I have the saved class of kendo react pdf called '.k-pdf-export' that should control all pdf css style
.k-pdf-export div {
color: green;
}
But only the 'p' char become green' even if I delete style from both icons fron main.jsx
Please help my, I didn't find any solution for that :(
I tried to use mui icons, kendo react icons and kendo react pdf class for change icons colors