mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
feat(input): component can be used outside of ion-item (#26283)
resolves #20153, resolves #19084, resolves #22736
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user