-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Labels
Impact: LowSeverity: MinorbugSomething isn't workingSomething isn't workingvaadin-text-areaworkaroundThere is a workaround in the comments.There is a workaround in the comments.
Description
Description
If you place a Button as a suffix inside a single-row TextArea, it expands vertically more than necessary
Currently I'm working around the issue with the following CSS:
vaadin-text-area::part(input-field) {
padding-block: 0;
}
vaadin-text-area textarea {
align-self: auto;
padding-block: var(--lumo-space-s);
}Expected outcome
I'd expect the TextArea to have the same height as a TextField with the same suffix
Minimal reproducible example
<script type="module">
import '@vaadin/button';
import '@vaadin/text-area';
import '@vaadin/text-field';
import '@vaadin/icon';
import '@vaadin/icons/vaadin-iconset.js';
</script>
<vaadin-text-field label="TextField with suffix" required>
<vaadin-button slot="suffix" theme="icon tertiary small">
<vaadin-icon icon="vaadin:caret-right"></vaadin-icon>
</vaadin-button>
</vaadin-text-field>
<vaadin-text-area label="TextArea with suffix" required min-rows="1">
<vaadin-button slot="suffix" theme="icon tertiary small">
<vaadin-icon icon="vaadin:caret-right"></vaadin-icon>
</vaadin-button>
</vaadin-text-area>Steps to reproduce
Open a HTML page with the snippet above included
Environment
Vaadin version(s): 24.7
Browsers
Issue is not browser related
AndreasSamjeske and dolukhanov
Metadata
Metadata
Assignees
Labels
Impact: LowSeverity: MinorbugSomething isn't workingSomething isn't workingvaadin-text-areaworkaroundThere is a workaround in the comments.There is a workaround in the comments.