Skip to content

[text-field] Readonly vaadin-text-area is higher than the "regular" version. #663

@emarc

Description

@emarc

Description

A readonly vaadin-text-area is higher (by default 2px) than a regular vaadin-text-area

Expected outcome

<vaadin-text-area></vaadin-text-area> and <vaadin-text-area readonly></vaadin-text-area> should be equally high.

Actual outcome

<vaadin-text-area></vaadin-text-area> is 99px high while <vaadin-text-area readonly></vaadin-text-area> is 101px high.

Live Demo

Go to examples and change one to readonly using devtools.
Markup 2020-11-30 at 11 53 53

For some reason the problem does not occur on glich using the suggested template. The border seems to be applied in a different place.
examples-vs-glitch

Does occur in a project downloaded from start.vaadin.com

Steps to reproduce

  1. Put a <vaadin-text-area> next to a <vaadin-text-area readonly>
  2. Check height

Browsers Affected

  • Chrome
  • Firefox
  • Safari
  • Edge
    (did not check others)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions