Commit Graph

11 Commits

Author SHA1 Message Date
Brandy Carney
660d53101f docs(sass): add documentation for the remaining sass variables
closes #8785
2016-12-05 10:16:40 -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
Brandy Carney
f2a9f2dd43 fix(range): bar height for ios should be 1px, add disabled for wp 2016-06-08 13:27:18 -04:00
Brandy Carney
c59c65647d feat(range): add styling for the range when knob is minimum md
references #5422
2016-06-02 10:31:47 -04:00
Brandy Carney
21753a88fe feat(range): add styling for range-left/range-right md and wp
references #5422
2016-06-01 10:59:11 -04:00
Brandy Carney
fc819dd9c4 feat(range): add ability to add labels to the left/right of range
using `range-left` and `range-right` inside of `ion-range` will place
the element to the left or right of the range.

references #5422
2016-05-31 20:11:09 -04:00
Brandy Carney
061af93b3c fix(range): update the styling for all modes
references #5422
2016-05-31 16:11:47 -04:00
Brandy Carney
d24b080cb7 fix(range): fix styling on range, add demo
references #5422
2016-05-31 14:37:43 -04:00
Brandy Carney
af6d5e4be4 feat(range): add md and wp styling, tweak ios styling
references #5422
2016-05-27 18:37:32 -04:00
Adam Bradley
2c6e11b10d feat(range): create ion-range input 2016-05-27 13:20:36 -05:00