Skip to content

Default style has changed in v9 #6140

@stropitek

Description

@stropitek

It seems like this commit changed the default appearance of the react-datepicker component.

The unit changed from rem to em, which means everything was multiplied by 0.8 compared to before, which does not seem intentional reading the commit message:

The default appearance remains unchanged since the root element still
uses font-size: 0.8rem.

v8: units in rem, so relative to the document's root element.
v9: units in em, so relative to the parent, which is set to 0.8rem, which effectively reduces those sizes.

Appearance in v8:

Image

Appearance in v9:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions