Commit Graph

20 Commits

Author SHA1 Message Date
Brandy Carney
551673c3bf refactor(sass): remove label variable since the css was removed 2016-11-30 11:34:07 -05:00
Max Lynch
b788ce6133 fix(labels): consistent label styles on iOS 2016-11-30 10:10:35 -06:00
Adam Bradley
67473f27fd fix(input): fix input margins while scrolling 2016-11-23 11:15:22 -06:00
Brandy Carney
e09aee4873 fix(input): add back old styles to fix input margin 2016-11-22 18:31:07 -05:00
Adam Bradley
3b304974ec fix(input): improve scroll to input and focusing
Related #6228
2016-11-21 08:56:00 -06:00
Alan
025c5cc646 fix(components): add a mode agnostic css class (#9133)
Fixes #8545
2016-11-14 13:50:01 -05:00
John Luke
5ef35b4090 docs(label): add descriptions of sass variables 2016-10-29 19:19:04 -03:00
Dan Bucholtz
83d973b1a8 chore(demos): change dgeni path for demos
change dgeni path for demos
2016-09-20 15:20:04 -05:00
Brandy Carney
bc7d328bc0 refactor(components): add color/mode properties 2016-09-13 17:11:38 -05:00
Brandy Carney
16df3a4aab refactor(css): update theme imports 2016-09-13 16:57:32 -05:00
Brandy Carney
750cde38e2 refactor(css): scope component css to mode 2016-09-13 16:52:47 -05:00
Brandy Carney
55a0257dbc refactor(colors): color should be added as an input instead of directly adding the color to the component
BREAKING CHANGES:

Colors should be passed in the `color` input on components, not added
individually as an attribute on the component.

For example:

```
<ion-tabs primary>
```

Becomes

```
<ion-tabs color=”primary”>
```

Or to bind an expression to color:

```
<ion-navbar [color]="barColor">
   ...
</ion-navbar>
```

```ts
@Component({
  templateUrl: 'build/pages/about/about.html'
})
export class AboutPage {
  barColor: string;

  constructor(private nav: NavController, platform: Platform) {
    this.barColor = platform.is('android') ? 'primary' : 'light';
  }
}
```

Reason for this change:
It was difficult to dynamically add colors to components, especially if
the name of the color attribute was unknown in the template.
This change keeps the css flat since we aren’t chaining color
attributes on components and instead we assign a class to the component
which includes the color’s name.
This allows you to easily toggle a component between multiple colors.
Speeds up performance because we are no longer reading through all of
the attributes to grab the color ones.

references #7467
closes #7087 closes #7401 closes #7523
2016-08-23 17:16:55 -04:00
Mark McEahern
d62faf9d81 docs(label): update copy for clarity
Change `about` to `above`, which appears to be the intended meaning.
2016-07-24 21:13:37 -05:00
Brandy Carney
65c84b307b revert(range): revert PR #7050, it breaks stacked labels and double labels
references #7046
2016-07-08 14:46:06 -04:00
Manu Mtz.-Almeida
5a8fe82c3a fix(range): ion-label stacked with ion-range (#7050)
fixes #7046
2016-07-08 14:34:46 -04:00
Adam Bradley
c7fa9490bf style(imports): add spaces in imports 2016-06-22 14:29:27 -05:00
Brandy Carney
adcd2fc239 fix(datetime): add styling for datetime with different labels
fixes #6764
2016-06-09 15:58:08 -04:00
Mateo Tibaquirá
3aead07d0d docs(label): minor link fix 2016-05-24 17:01:55 -05:00
Brandy Carney
b742e1f0da fix(label): make all ion-labels stacked or floating stretch
closes #6134
2016-05-19 19:32:18 -04:00
Josh Thomas
c8f760f080 chore(build): rename ionic directory to src and update all references in the build process. 2016-05-19 13:22:40 -05:00