mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 09:34:19 +08:00
add comments, extra space cleanup
This commit is contained in:
@ -678,6 +678,8 @@ export class Input implements ComponentInterface {
|
|||||||
labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus));
|
labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus));
|
||||||
|
|
||||||
const startSlotEl = el.querySelector('[slot="start"]');
|
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;
|
const startSlotWidth = startSlotEl ? startSlotEl.clientWidth + 16 : 0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -630,6 +630,11 @@
|
|||||||
:host(.textarea-label-placement-stacked) ::slotted([slot="end"]),
|
:host(.textarea-label-placement-stacked) ::slotted([slot="end"]),
|
||||||
:host(.textarea-label-placement-floating) ::slotted([slot="start"]),
|
:host(.textarea-label-placement-floating) ::slotted([slot="start"]),
|
||||||
:host(.textarea-label-placement-floating) ::slotted([slot="end"]) {
|
: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);
|
margin-top: calc(1em + 8px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user