Skip to content

Commit

Permalink
fix(inputs): interactive css to rule all them
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed May 9, 2018
1 parent 2b624fc commit 1bd5467
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 19 deletions.
2 changes: 1 addition & 1 deletion core/src/components/datetime/datetime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export class Datetime {

private emitStyle() {
this.ionStyle.emit({
'input': true,
'interactive': true,
'datetime': true,
'datetime-disabled': this.disabled,
'input-has-value': this.hasValue()
Expand Down
1 change: 1 addition & 0 deletions core/src/components/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ export class Input implements InputComponent {

private emitStyle() {
this.ionStyle.emit({
'interactive': true,
'input': true,
'input-disabled': this.disabled,
'input-has-value': this.hasValue(),
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/item-divider/item-divider.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}

.item-divider-md ion-icon[slot="start"] + .item-inner,
.item-divider-md ion-icon[slot="start"] + .item-input {
.item-divider-md ion-icon[slot="start"] + .item-interactive {
@include margin-horizontal($item-md-padding-start + ($item-md-padding-start / 2), null);
}

Expand Down
4 changes: 2 additions & 2 deletions core/src/components/item/item.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
}

// Default input items have a border
.item-md.item-input {
.item-md.item-interactive {
border-bottom-width: $item-md-border-bottom-width;
}

Expand Down Expand Up @@ -127,7 +127,7 @@
}

.item-md > ion-icon[slot="start"] + .item-inner,
.item-md > ion-icon[slot="start"] + .item-input {
.item-md > ion-icon[slot="start"] + .item-interactive {
@include margin-horizontal($item-md-padding-start + ($item-md-padding-start / 2), null);
}

Expand Down
8 changes: 2 additions & 6 deletions core/src/components/label/label.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
// iOS Default Label Inside An Input/Select Item
// --------------------------------------------------

.item-input .label-ios,
.item-select .label-ios,
.item-datetime .label-ios {
.item-interactive .label-ios {
color: $label-ios-text-color;
}

Expand Down Expand Up @@ -61,9 +59,7 @@
$color-base: ion-color($colors-ios, $color-name, base, ios);

.label-ios-#{$color-name},
.item-input .label-ios-#{$color-name},
.item-select .label-ios-#{$color-name},
.item-datetime .label-ios-#{$color-name} {
.item-interactive .label-ios-#{$color-name} {
color: $color-base;
}
}
8 changes: 2 additions & 6 deletions core/src/components/label/label.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
// Material Design Default Label Inside An Input/Select Item
// --------------------------------------------------

.item-input .label-md,
.item-select .label-md,
.item-datetime .label-md {
.item-interactive .label-md {
color: $label-md-text-color;
}

Expand Down Expand Up @@ -63,9 +61,7 @@
$color-base: ion-color($colors-md, $color-name, base, md);

.label-md-#{$color-name},
.item-input .label-md-#{$color-name},
.item-select .label-md-#{$color-name},
.item-datetime .label-md-#{$color-name} {
.item-interactive .label-md-#{$color-name} {
color: $color-base;
}
}
2 changes: 1 addition & 1 deletion core/src/components/list/list.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
border-bottom-width: 0;
}

.list-md[inset] .item-input {
.list-md[inset] .item-interactive {
@include padding-horizontal(0);
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export class Select {

private emitStyle() {
this.ionStyle.emit({
'input': true,
'interactive': true,
'select': true,
'select-disabled': this.disabled,
'input-has-value': this.hasValue()
Expand Down
1 change: 0 additions & 1 deletion core/src/components/select/test/single-value/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@
year.appendChild(option);
}

debugger;
year.componentOnReady().then(() => {
year.value = 1994;
});
Expand Down
1 change: 1 addition & 0 deletions core/src/components/textarea/textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export class Textarea implements TextareaComponent {

private emitStyle() {
this.ionStyle.emit({
'interactive': true,
'textarea': true,
'input': true,
'input-disabled': this.disabled,
Expand Down

0 comments on commit 1bd5467

Please sign in to comment.