feat(input): component can be used outside of ion-item (#26283)

resolves #20153, resolves #19084, resolves #22736
This commit is contained in:
Liam DeBeasi
2022-11-15 11:46:44 -05:00
committed by GitHub
parent c50620af6c
commit 44472aeb9f
646 changed files with 3675 additions and 173 deletions

View File

@ -2,12 +2,18 @@
@import "./input.ios.vars";
:host {
--border-width: #{$hairlines-width};
--border-color: #{$item-ios-border-color};
font-size: $input-ios-font-size;
}
// TODO FW-2764 Remove this
:host(.legacy-input) {
--padding-top: #{$input-ios-padding-top};
--padding-end: #{$input-ios-padding-end};
--padding-bottom: #{$input-ios-padding-bottom};
--padding-start: #{$input-ios-padding-start};
font-size: $input-ios-font-size;
}
:host-context(.item-label-stacked),
@ -25,3 +31,20 @@
background-size: $input-ios-input-clear-icon-size;
}
// Input Wrapper
// ----------------------------------------------------------------
.input-wrapper {
min-height: 44px;
}
/**
* Since the label sits on top of the element,
* the component needs to be taller otherwise the
* label will appear too close to the input text.
*/
:host(.input-label-placement-floating) .input-wrapper,
:host(.input-label-placement-stacked) .input-wrapper {
min-height: 56px;
}