add comments, extra space cleanup

This commit is contained in:
amandaesmith3
2024-03-18 13:17:02 -05:00
parent cd1213ef04
commit 819d48edee
4 changed files with 10 additions and 3 deletions

View File

@ -678,6 +678,8 @@ export class Input implements ComponentInterface {
labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus));
const startSlotEl = el.querySelector('[slot="start"]');
// 16px is the margin after the start slot content, which we also need to account for.
const startSlotWidth = startSlotEl ? startSlotEl.clientWidth + 16 : 0;
return (

View File

@ -630,6 +630,11 @@
:host(.textarea-label-placement-stacked) ::slotted([slot="end"]),
:host(.textarea-label-placement-floating) ::slotted([slot="start"]),
:host(.textarea-label-placement-floating) ::slotted([slot="end"]) {
/**
* 1em accounts for the padding applied to the native textarea.
* This value may need adjusting to get everything lined up
* in all conditions.
*/
margin-top: calc(1em + 8px);
}