15 Commits

Author SHA1 Message Date
025c5cc646 fix(components): add a mode agnostic css class (#9133)
Fixes #8545
2016-11-14 13:50:01 -05:00
5ef35b4090 docs(label): add descriptions of sass variables 2016-10-29 19:19:04 -03:00
83d973b1a8 chore(demos): change dgeni path for demos
change dgeni path for demos
2016-09-20 15:20:04 -05:00
bc7d328bc0 refactor(components): add color/mode properties 2016-09-13 17:11:38 -05:00
16df3a4aab refactor(css): update theme imports 2016-09-13 16:57:32 -05:00
750cde38e2 refactor(css): scope component css to mode 2016-09-13 16:52:47 -05:00
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
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
65c84b307b revert(range): revert PR #7050, it breaks stacked labels and double labels
references #7046
2016-07-08 14:46:06 -04:00
5a8fe82c3a fix(range): ion-label stacked with ion-range (#7050)
fixes #7046
2016-07-08 14:34:46 -04:00
c7fa9490bf style(imports): add spaces in imports 2016-06-22 14:29:27 -05:00
adcd2fc239 fix(datetime): add styling for datetime with different labels
fixes #6764
2016-06-09 15:58:08 -04:00
3aead07d0d docs(label): minor link fix 2016-05-24 17:01:55 -05:00
b742e1f0da fix(label): make all ion-labels stacked or floating stretch
closes #6134
2016-05-19 19:32:18 -04:00
c8f760f080 chore(build): rename ionic directory to src and update all references in the build process. 2016-05-19 13:22:40 -05:00