Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 13.3k
refactor(input): remove legacy property and styling#29019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
e2b728bfb37f4be2df10191f56cb55de1b5d1a7adcFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -7,18 +7,6 @@ | ||
| /// @prop - Font size of the input | ||
| $input-md-font-size: inherit !default; | ||
| /// @prop - Margin top of the input | ||
| $input-md-padding-top: 10px !default; | ||
| /// @prop - Margin end of the input | ||
| $input-md-padding-end: 0 !default; | ||
| /// @prop - Margin bottom of the input | ||
| $input-md-padding-bottom: 10px !default; | ||
| /// @prop - Margin start of the input | ||
| $input-md-padding-start: ($item-md-padding-start * 0.5) !default; | ||
Comment on lines
-10
to
-21
MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These variables were only used by the legacy input | ||
| /// @prop - The amount of whitespace to display on either side of the floating label | ||
| $input-md-floating-label-padding: 4px !default; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -57,6 +57,8 @@ | ||
| width: 100%; | ||
| min-height: 44px; | ||
| /* stylelint-disable-next-line all */ | ||
| padding: 0 !important; | ||
| @@ -67,47 +69,18 @@ | ||
| z-index: $z-index-item-input; | ||
| } | ||
| // TODO FW-2764 Remove this | ||
| :host(.legacy-input) { | ||
| display: flex; | ||
| flex: 1; | ||
| align-items: center; | ||
| background: var(--background); | ||
| } | ||
| // TODO FW-2764 Remove this | ||
| :host(.legacy-input) .native-input { | ||
| @include padding(var(--padding-top), var(--padding-end), var(--padding-bottom), var(--padding-start)); | ||
| @include border-radius(var(--border-radius)); | ||
| } | ||
| :host-context(ion-item:not(.item-label):not(.item-has-modern-input)) { | ||
| --padding-start: 0; | ||
| } | ||
| :host-context(ion-item)[slot="start"], | ||
| :host-context(ion-item)[slot="end"] { | ||
| width: auto; | ||
| } | ||
| // TODO FW-2764 Remove this | ||
| :host(.legacy-input.ion-color) { | ||
| color: current-color(base); | ||
| } | ||
| :host(.ion-color) { | ||
| --highlight-color-focused: #{current-color(base)}; | ||
| } | ||
| // Input Wrapper | ||
| // ---------------------------------------------------------------- | ||
| :host(:not(.legacy-input)) { | ||
| min-height: 44px; | ||
| } | ||
| /** | ||
| * Since the label sits on top of the element, | ||
| * the component needs to be taller otherwise the | ||
| @@ -206,11 +179,6 @@ | ||
| // Clear Input Icon | ||
| // -------------------------------------------------- | ||
| // TODO FW-2764 Remove this | ||
| :host(.legacy-input) .input-clear-icon { | ||
| @include margin(0); | ||
| } | ||
| .input-clear-icon { | ||
| @include margin(auto); | ||
| @include padding(0); | ||
| @@ -256,37 +224,6 @@ | ||
| visibility: visible; | ||
| } | ||
| // Input Has focus | ||
| // -------------------------------------------------- | ||
| // TODO FW-2764 Remove this | ||
| :host(.has-focus.legacy-input) { | ||
| pointer-events: none; | ||
| } | ||
| // TODO FW-2764 Remove this | ||
| :host(.has-focus.legacy-input) input, | ||
| :host(.has-focus.legacy-input) a, | ||
| :host(.has-focus.legacy-input) button { | ||
| pointer-events: auto; | ||
| } | ||
brandyscarney marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| // Item Floating: Placeholder | ||
| // ---------------------------------------------------------------- | ||
| // When used with a floating item the placeholder should hide | ||
| :host-context(.item-label-floating.item-has-placeholder:not(.item-has-value)) { | ||
| opacity: 0; | ||
| } | ||
| :host-context(.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus) { | ||
| transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1); | ||
| opacity: 1; | ||
| } | ||
| // Input Wrapper | ||
| // ---------------------------------------------------------------- | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These variables were only used by the legacy input