The Wayback Machine - https://web.archive.org/web/20201130212421/https://github.com/diegomura/react-pdf/issues/889
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

styled components does not support text-decoration #889

Open
dance-dance-banana-frenzy opened this issue May 4, 2020 · 0 comments
Open

styled components does not support text-decoration #889

dance-dance-banana-frenzy opened this issue May 4, 2020 · 0 comments

Comments

@dance-dance-banana-frenzy
Copy link

@dance-dance-banana-frenzy dance-dance-banana-frenzy commented May 4, 2020

Describe the bug
text decoration does not work.

To Reproduce

import React from 'react';
import styled from '@react-pdf/styled-components';
const Wrapper = styled.Link`
  text-decoration: none;
`;
const Foo = ({ src, children }) => (
  <Wrapper src={src}>{children}</Wrapper>
);

Workaround

import React from 'react';
import { Link } from '@react-pdf/renderer';
const Foo = ({ src, children }) => (
  <Link src={src} style={{textDecoration: 'none'}}>{children}</Link>
);

Expected behavior
Links generated without underlines

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Chrome
  • React-pdf version [e.g. v1.1.0]
    "@react-pdf/renderer": "^1.6.8",
    "@react-pdf/styled-components": "^1.4.0",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.