bug(mat-select): Span inside of mat-select-trigger causes height to change by 1px #29743
Closed
1 task
Labels
area: material/select
docs
This issue is related to documentation
P4
A relatively minor issue that is not relevant to core functions
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Using
<mat-select-trigger>
with an inner span causes the element's height to change by 1px.More precisely, in an example like this (taken from the website):
That
<span class="...">
portion will, when rendered, cause the size of the select box to grow by 1px.Reproduction
StackBlitz link: https://stackblitz.com/edit/33iirb?file=package.json
Steps to reproduce:
Expected Behavior
It should stay the same size.
If there's some sort of CSS rules/something that needs to apply to keep this the same size, that should be demonstrated in the example on the website.
Actual Behavior
It make's the page content bob up and down by 1px when the span is shown/hidden.
Environment
The text was updated successfully, but these errors were encountered: