tailwindlabs / tailwindui-issues

A place to report bugs discovered in Tailwind UI.
235 stars 4 forks source link

Descenders clipped in illustrated hero with screenshot section #549

Closed gregsullivan closed 3 years ago

gregsullivan commented 3 years ago

What component (if applicable)

Describe the bug The descenders in the "ship web apps" span are clipped. This is less obvious with the letter P, but very obvious with lowercase G's and Y's.

To Reproduce The error is present in the example; turning off the classes on the "ship web apps" span reveals longer descenders on the lowercase P's.

Screenshots

Screen Shot 2021-04-05 at 12 09 50 PM

Browser/Device (if applicable) Tested in latest Chrome, Safari, Firefox

gregsullivan commented 3 years ago

Removing the top margin from the paragraph below and adding the same amount of bottom padding to the affected span solves the problem, though it could likely be solved in other ways as well.

davidluhr commented 3 years ago

@gregsullivan Thanks for reporting this, and for the fix. I've implemented this fix and it should be live on the site shortly.

gregsullivan commented 3 years ago

@davidluhr You're very welcome—thanks for implementing the fix!