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

Fix selection of parameter names in HTML theme #9763

Merged
merged 1 commit into from Oct 23, 2021

Commits on Oct 22, 2021

  1. Fix selection of parameter names in HTML theme

    Parameters are written in HTML as (leaving out some internal classes):
    ```
    <strong>name</strong><span class="classifier"><a><code><span>TypeName</span></code></a></span>
    ```
    but in rendered form there's a colon between the name and type. This
    colon is inserted virtually using CSS, but since it doesn't exist, the
    browser thinks both sides are part of the same word.
    
    Styling the virtual text as inline block makes it be treated as a break,
    but also makes it apply vertical margins, so we need to set those to
    zero again.
    
    See matplotlib/matplotlib#21432
    QuLogic committed Oct 22, 2021
    Copy the full SHA
    ac6935b View commit details
    Browse the repository at this point in the history