Skip to content

Commit

Permalink
fix(item): update hostContext to use ion-item element
Browse files Browse the repository at this point in the history
fixes styling issues with children elements using the .in-item class
  • Loading branch information
brandyscarney committed Sep 13, 2018
1 parent 6c62e6c commit 21d1f2e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/src/components/checkbox/checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class Checkbox {
return {
class: {
...createColorClasses(this.color),
'in-item': hostContext('.item', this.el),
'in-item': hostContext('ion-item', this.el),
'checkbox-checked': this.checked,
'checkbox-disabled': this.disabled,
'checkbox-key': this.keyFocus,
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export class Input {
class: {
...createColorClasses(this.color),

'in-item': hostContext('.item', this.el),
'in-item': hostContext('ion-item', this.el),
'has-value': this.hasValue(),
'has-focus': this.hasFocus
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/menu/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export class Menu implements MenuI {
this.gesture.setDisabled(!isActive || !this.swipeGesture);
}

// Close menu inmediately
// Close menu immediately
if (!isActive && this._isOpen) {
// close if this menu is open, and should not be enabled
this.forceClosing();
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/radio/radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export class Radio {
return {
class: {
...createColorClasses(this.color),
'in-item': hostContext('.item', this.el),
'in-item': hostContext('ion-item', this.el),
'interactive': true,
'radio-checked': this.checked,
'radio-disabled': this.disabled,
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/range/range.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export class Range {
return {
class: {
...createColorClasses(this.color),
'in-item': hostContext('.item', this.el),
'in-item': hostContext('ion-item', this.el),
'range-disabled': this.disabled,
'range-pressed': this.pressedKnob !== undefined,
'range-has-pin': this.pin
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 @@ -458,7 +458,7 @@ export class Select {
hostData() {
return {
class: {
'in-item': hostContext('.item', this.el),
'in-item': hostContext('ion-item', this.el),
'select-disabled': this.disabled,
'select-key': this.keyFocus
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/toggle/toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class Toggle {
return {
class: {
...createColorClasses(this.color),
'in-item': hostContext('.item', this.el),
'in-item': hostContext('ion-item', this.el),
'toggle-activated': this.activated,
'toggle-checked': this.checked,
'toggle-disabled': this.disabled,
Expand Down

0 comments on commit 21d1f2e

Please sign in to comment.