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

Link component text-decoration messing up with tailwindcss styles #1682

Open
leandrodragani opened this issue Sep 15, 2024 · 1 comment
Open

Comments

@leandrodragani
Copy link

Describe the Bug

Tailwind underline class not getting applied because of hardcoded text-decoration: none; on Link component.

Which package is affected (leave empty if unsure)

@react-email/link

Link to the code that reproduces this issue

https://github.com/resend/react-email/blob/canary/packages/link/src/__snapshots__/link.spec.tsx.snap

To Reproduce

 <Section className="mt-10 border-t border-solid border-[#E1E1E1] pt-8 text-center">
    <Text className="m-0 text-base text-gray-600">
      Need to make a change?{' '}
      <Link
        href="#"
        className="text-gray-600 underline"
        style={{ textDecoration: 'underline' }}
      >
        Cancel
      </Link>{' '}
      or{' '}
      <Link href="#" className="text-gray-600 underline">
        Reschedule
      </Link>
    </Text>
  </Section>

CleanShot 2024-09-15 at 18 13 45@2x

Expected Behavior

underline tailwind class should get applied to Link component

What's your node version? (if relevant)

No response

@gabrielmfern
Copy link
Collaborator

Can you check it out with @react-email/[email protected]?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants