Commit Graph

78 Commits

Author SHA1 Message Date
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
Adam Bradley
d7be8a80c0 test(ngmodule): update to ngmodule 2016-09-13 15:44:02 -05:00
Sergio Leal
66da98dc5f docs: update toolbar.ts (#7830)
Just a typo
2016-08-23 20:40:10 -04: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
938864e8d0 refactor(button): add ion-button attribute and icon attributes to style buttons
BREAKING CHANGES:

- `<button>` becomes `<button ion-button>`
- `<a button>` becomes `<a ion-button>`
- `<button ion-item>` does not get the `ion-button` attribute
- Buttons inside of `<ion-item-options>` do get the `ion-button`
attribute
- Removed the `category` attribute, this should be passed in
`ion-button` instead.
- Button attributes added for icons in buttons: `icon-only`,
`icon-left`, and `icon-right`

closes #7466
2016-08-16 17:11:02 -04:00
Da-FyK
8d0cc39357 docs(): fix path (nav->navbar) typo 2016-08-12 15:26:16 -05:00
mhartington
1c596556c5 docs(footer, header): add docs 2016-07-29 10:37:12 -05:00
Manu Mtz.-Almeida
ac8e4dce06 style(all): tslinter warnings 2016-07-19 13:31:46 -07:00
Brandy Carney
88b637b491 feat(toolbar): add attributes to hide all borders and box shadows
closes #7237
2016-07-08 11:45:05 -04:00
Brandy Carney
41064bf2be refactor(tabs): rename tab input/config options to be more clear/consistent
BREAKING CHANGES:

Tab input/config options have been renamed. The following options were
renamed:

- `tabbarHighlight` -> `tabsHighlight`
- `tabbarLayout` -> `tabsLayout`
- `tabSubPages` -> `tabsHideOnSubPages`
- `tabbarPlacement` -> `tabsPlacement`

The previous names have been deprecated. They will still work in the
current release but will be removed in the future so please update to
the new names.

references #7143
2016-07-07 13:09:00 -04:00
Adam Bradley
816a6486b0 fix(button): apply css for buttons w/ ngIf
Closes #5927
2016-07-04 21:26:58 -05:00
Adam Bradley
656426672c chore(templates): import required directives for ionic templates 2016-07-01 00:59:37 -05:00
Brandy Carney
9b2f4a682e chore(sass): fix linter errors 2016-06-30 16:44:10 -04:00
Adam Bradley
686c262c4c feat(footer): apply shadow on MD footer and tabbar bottom 2016-06-30 11:57:09 -05:00
Adam Bradley
1f4b3e2cf0 feat(tabbar): apply shadow on MD tabbar top 2016-06-29 22:06:18 -05:00
Adam Bradley
37c53ac07c style(scss): fix scss lint errors 2016-06-29 11:44:51 -05:00
Adam Bradley
6fa2faffba feat(header): apply shadow on MD headers 2016-06-29 11:26:38 -05:00
Adam Bradley
2fe42ed63e chore(): clean up unused references 2016-06-28 11:28:25 -05:00
Brandy Carney
f7880c9d5f test(e2e): fix e2e tests with missing ion-navs, hide border on toolbars 2016-06-22 15:52:51 -04:00
Adam Bradley
c7fa9490bf style(imports): add spaces in imports 2016-06-22 14:29:27 -05:00
Adam Bradley
3a7addf7b0 feat(toolbar): control toolbar borders on top/bottom
Toolbars can be stacked up vertically in `<ion-header>`,
`<ion-content>`, and `<ion-footer>` elements. However, toolbars also
come with borders on both the top and bottom of the toolbar. To give
developers full control of the design, Ionic also includes the
`no-border-bottom` and `no-border-top` attributes. For example,
sometimes two vertically stacked toolbars may have different background
colors, in this case it might be best to leave a border between them.
However, if they have the same background color, the app may look best
without a border between them. The main point here is, it's entirely up
to the app's design to decide when and when not to show borders between
toolbars, and to do so then each toolbar can individually set
`no-border-bottom` and `no-border-top` attributes.
2016-06-20 12:01:21 -05:00
Adam Bradley
cdb1f8503c chore(sass): move z-index vars to separate file, remove unused vars 2016-06-17 23:21:15 -05:00
Adam Bradley
48c1ffd4f9 fix(toolbar): place iOS border on ion-header/footer 2016-06-17 22:19:51 -05:00
Adam Bradley
1986710537 refactor(content): add dimension read/write methods 2016-06-17 15:23:13 -05:00
Brandy Carney
1d8ba4a5e7 fix(toolbar): position toolbar relative and add z-index 2016-06-17 16:15:31 -04:00
Brandy Carney
927edfffcd refactor(tabs): remove all uses of ion-navbar-section 2016-06-17 13:51:30 -04:00
Adam Bradley
5a85d82b8a fix(header): optional ViewController injection 2016-06-17 12:15:01 -05:00
Adam Bradley
64b867816a docs(header): update header markup 2016-06-17 11:48:15 -05:00
Adam Bradley
d13fa4e2cf refactor(structure): allow content to scroll under headers/footers 2016-06-16 11:28:02 -05:00
Brandy Carney
79a7f2fcb6 docs(menu/toolbar): update documentation for buttons/menuToggle in a toolbar
closes driftyco/ionic-site#590
2016-06-02 15:15:07 -04:00
Adam Bradley
11448dcd0c chore(tslint): fix noImplicitAny errors 2016-05-31 21:07:17 -05:00
Adam Bradley
6e9087534d test(bootstrap): update to use ionicBootstrap 2016-05-31 15:49:12 -05:00
Brandy Carney
6d241fd8fa Merge branch '2.0' into pr/6370 2016-05-20 17:46:18 -04:00
Josh Thomas
2b836a930f chore(tests): correct components to use src path instead of ionic to ensure karma tests pass. 2016-05-19 16:58:08 -05: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
Andrew
9039297110 rename src to ionic 2015-04-25 10:59:09 -05:00
Adam Bradley
cdd62e98b9 use IonicComponent 2015-04-22 16:56:57 -05:00
Adam Bradley
adeaf4d464 using material design term instead of android 2015-04-10 16:05:35 -05:00
Adam Bradley
dda0b7a8a2 rename platform base to core 2015-04-10 15:42:22 -05:00
Adam Bradley
a55d0ab478 tab-bar/toolbar alignment 2015-04-10 15:36:43 -05:00
Adam Bradley
a5aeaf41da tab structure updates 2015-04-10 13:45:04 -05:00
Adam Bradley
a936791214 layout refactor 2015-04-10 11:39:33 -05:00
Adam Bradley
44328137d1 add all components 2015-04-08 09:18:55 -05:00
Adam Bradley
1b614634b3 tab updates 2015-04-08 08:12:30 -05:00
Adam Bradley
ca85b7be2c tabs 2015-04-07 16:12:29 -05:00
Adam Bradley
2e9da98d41 tabs / hairlines 2015-04-07 11:59:13 -05:00
Andrew
02de37eaab remove source references to ionic2/components 2015-04-03 09:25:27 -06:00