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

line-height is too low for h1 and h2 #1796

Closed
srmagura opened this issue Nov 16, 2021 · 0 comments · Fixed by #1806
Closed

line-height is too low for h1 and h2 #1796

srmagura opened this issue Nov 16, 2021 · 0 comments · Fixed by #1806
Labels
bug Functionality does not match expectation

Comments

@srmagura
Copy link
Contributor

Search terms

line height, headings, spacing, h1, h2

Expected Behavior

TypeDoc should use an appropriate line-height for headings.

Actual Behavior

The line-height is too low for h1 and h2. h3 and h4 are fine.

image

Steps to reproduce the bug

/**
 * # My really long h1 just to show that the line-height is really low if the heading wraps to multiple lines
 *
 * ## My really long h2 just to show that the line-height is really low if the heading wraps to multiple lines
 *
 * ### My really long h3 just to show that the line-height is really low if the heading wraps to multiple lines
 *
 * #### My really long h4 just to show that the line-height is really low if the heading wraps to multiple lines
 */
export const x = 'foobar'

Environment

  • Typedoc version: 0.22.9
  • TypeScript version: 4.4.4
  • Node.js version: 16
  • OS: Windows 10

Will PR sometime since this seems like an easy fix.

@srmagura srmagura added the bug Functionality does not match expectation label Nov 16, 2021
srmagura added a commit to srmagura/typedoc that referenced this issue Nov 26, 2021
Closes TypeStrong#1796. I chose 1.2 because this is what Bootstrap uses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality does not match expectation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant