Commit Graph

95 Commits

Author SHA1 Message Date
Brandy Carney
e210448e63 docs(toolbar): update API docs and any tests to remove old toolbar attributes 2016-12-07 12:29:34 -05:00
Brandy Carney
b73304e3aa refactor(toolbar): rename no-shadow to no-border for md mode
BREAKING CHANGES:

Renamed `no-shadow` attribute for Material Design header, footer, and
tabs to `no-border`. This is the same attribute used by iOS mode.
2016-12-07 12:29:34 -05:00
Brandy Carney
d53a38e479 fix(header): fix no-border on ios headers
fixes #9525 closes #9480
2016-12-07 12:29:34 -05:00
Manu Mtz.-Almeida
ac07c6f124 fix(button): button strong is configurable 2016-12-06 22:38:03 +01:00
Manu Mtz.-Almeida
c0c09a7149 fix(button): strong is iOS-only 2016-12-06 22:04:51 +01:00
Manu Mtz.-Almeida
af7139b7ab fix(picker): mark main button as strong 2016-12-05 22:59:54 +01:00
Brandy Carney
660d53101f docs(sass): add documentation for the remaining sass variables
closes #8785
2016-12-05 10:16:40 -05:00
Brandy Carney
abc7395428 fix(content): prefix utility attributes with ion-app and the mode
this makes the utility attribute take precedence over the individual
component classes and makes it work per mode again so the
padding/margin presets can be changed based on the mode

closes #8765
2016-12-02 12:56:19 -05:00
Manu Mtz.-Almeida
fa0579fe46 feat(button): strong decorator 2016-11-29 10:13:01 -06:00
Manu Mtz.-Almeida
d82bb01505 fix(nav): back button and title not aligned on baseline
fixes #8983
2016-11-27 18:09:23 +01:00
Manu Mtz.-Almeida
320989540e perf(menu): improves menu performance and fixes some edge cases 2016-11-25 22:56:53 +01:00
Brandy Carney
b515f5251b refactor(toolbar): move border from toolbar to header/footer and increase opacity
This matches native iOS. Removed the `no-border-top` and
`no-border-bottom` from toolbars since it is only added to `ion-header`
and `ion-footer` now, and added `no-border` to each of those.
2016-11-23 17:54:05 -06:00
Manu Mtz.-Almeida
5ad7fd1908 perf(rendering): add css containment 2016-11-23 11:08:45 -06:00
Manu Mtz.-Almeida
32ab817181 fix(gestures): gesture controller handled by components
* fix(gestures): gesture controller is handled by components

fixes #9046

* fix(gestures): adds hybrid disable scroll assistance

fixes #9130
fixes #9052
fixes #7444
2016-11-16 10:03:51 -06:00
Alan
025c5cc646 fix(components): add a mode agnostic css class (#9133)
Fixes #8545
2016-11-14 13:50:01 -05:00
Brandy Carney
0e53ec315d fix(button): fix ios buttons in colored toolbar so they don't use the default color
fixes #8566
2016-11-09 19:05:21 -05:00
Jake Price
08db53ec0b Fix - Update spelling in toolbar-title.ts docs
A basic spelling change in the toolbar-title.ts documentation (heder to header)
2016-11-02 07:44:42 +00: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
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