Commit Graph

97 Commits

Author SHA1 Message Date
Josh Thomas
22d1aeebaa docs(react): update component usage docs (#17615) 2019-02-26 08:54:01 -06:00
Adam Bradley
4646f53ec7 fix(ssr): fix global window and document references (#17590) 2019-02-22 20:13:09 -06:00
Abdelaziz Bennouna
fc43faa86a fix(menu): fix content shadow when revealed in iOS (#17383) 2019-02-05 14:04:49 -05:00
Manu Mtz.-Almeida
854e345088 chore(): skip some tests 2019-01-22 21:30:01 +01:00
Manu MA
59bd823d05 fix(gesture): destroy gesture handler when it's done (#17184)
fixes #16433
fixes #16974
2019-01-21 02:01:44 +01:00
Adam Bradley
003eb2faff test(e2e): fix e2e screenshot wait (#17110) 2019-01-14 16:56:08 -06:00
Adam Bradley
c68292b78f test(rtl): add rtl script to all e2e tests (#17009) 2019-01-08 15:06:23 -06:00
Manu Mtz.-Almeida
3d656ac312 docs(all): improve type docs for event 2018-12-28 20:38:24 +01:00
Manu Mtz.-Almeida
f05c59979f fix(menu): swipe-back has higher priority
fixes #16864
2018-12-28 20:38:24 +01:00
Manu Mtz.-Almeida
f9483a0c13 refactor(utils): reorganize some chunks 2018-12-28 20:38:24 +01:00
Manu Mtz.-Almeida
e7db4077be test(menu): fix e2e 2018-12-14 23:33:01 +01:00
Brandy Carney
4053f386fd refactor(components): consistent css variables for size (#16600)
Reviews the `--width` and `--height` variables in each component to either remove or add them based on need.

- fixes a bug where the spinner color wasn't being set properly in loading
- adds css variables for customizing background, color, some borders in overlays
- fixes a bug where prefix, suffix are taking up too much width in picker

closes #16097
references ionic-team/ionic-docs#228

BREAKING CHANGES

## Core Components

Removes the `--width` and `--height` variables from the following components, in favor of CSS:

- Button
- FAB Button
- Checkbox
  - Removes the `--width`/`--height` and adds a `--size` variable that is set on the width and height, allowing width and height to still be set and border-radius to still use it as a variable
- Radio
  - Removes the `--width`/`--height` and `--inner-width`/`--inner-height` variables. Calculates inner values based on parent element size.

## Overlay Components

The following components have all be converted to shadow (or scoped) and have CSS variables for width/height:

- Action Sheet _(scoped)_
- Alert  _(scoped)_
- Loading  _(scoped)_
- Menu _(shadow)_
- Modal  _(scoped)_
- Picker _(scoped)_
- Popover  _(scoped)_
- Toast _(shadow)_

The above components will now have the following CSS variables for consistency among overlays:

| Name              |
| ----------------- |
| `--height`        |
| `--max-height`    |
| `--max-width`     |
| `--min-height`    |
| `--min-width`     |
| `--width`         |

If the component does not set the value, it will default to `auto`.

## Removed CSS Variables

The following CSS properties have been removed:

| Component      | Property            | Reason                          |
| ---------------| --------------------| --------------------------------|
| **Button**     | `--height`          | Use CSS instead                 |
| **Button**     | `--margin-bottom`   | Use CSS instead                 |
| **Button**     | `--margin-end`      | Use CSS instead                 |
| **Button**     | `--margin-start`    | Use CSS instead                 |
| **Button**     | `--margin-top`      | Use CSS instead                 |
| **Button**     | `--width`           | Use CSS instead                 |
| **Checkbox**   | `--height`          | Use CSS or `--size`             |
| **Checkbox**   | `--width`           | Use CSS or `--size`             |
| **FAB Button** | `--width`           | Use CSS instead                 |
| **FAB Button** | `--height`          | Use CSS instead                 |
| **FAB Button** | `--margin-bottom`   | Use CSS instead                 |
| **FAB Button** | `--margin-end`      | Use CSS instead                 |
| **FAB Button** | `--margin-start`    | Use CSS instead                 |
| **FAB Button** | `--margin-top       | Use CSS instead                 |
| **Menu**       | `--width-small`     | Use a media query and `--width` |
| **Radio**      | `--width`           | Use CSS instead                 |
| **Radio**      | `--height`          | Use CSS instead                 |
| **Radio**      | `--inner-height`    | Calculated based on parent      |
| **Radio**      | `--inner-width`     | Calculated based on parent      |
2018-12-14 15:45:14 -05:00
Manu MA
2933f61e8d fix(react): add class based APIs (#16665)
fixes #16583
2018-12-11 01:08:00 +01:00
Manu MA
6b7f8ae201 chore(): update stencil (#16506) 2018-11-29 18:54:51 +01:00
Manu Mtz.-Almeida
108691dc44 fix(angular): add swipe-to-go-back gesture 2018-11-14 13:22:31 +01:00
Cam Wiegert
6d3042efe5 docs(menu): document custom properties (#16249)
references #14850
2018-11-06 12:50:06 -06:00
Cam Wiegert
3ecefcbf1e test(menu): add buttons and test push type (#16247)
- Augments the menu component's tests to include buttons for non-automated usage
- Uses the push type for one of the menus.
2018-11-06 11:55:34 -06:00
Manu MA
091625df64 fix(all): update types to be required (#16218) 2018-11-03 20:54:58 +01:00
Manu MA
ecc2c55370 docs(all): possible values are extracted by stencil (#16190)
* docs(all): possible values are extracted by stencil

* add defaults

* remove all hardcoded defaults

* update stencil
2018-11-02 00:06:40 +01:00
Brandy Carney
335acf96ee fix(menu): update box-shadow for MD to match spec (#16183) 2018-11-01 15:48:33 -04:00
Brandy Carney
9dfc863f0f fix(fab-button): use correct background in list and update the md icon color (#16092)
* fix(fab): separate the mode colors and update the md icon color

-md icon color matches spec by adding 0.54 opacity to the color

fixes #16091

* fix(fab): update the font size for buttons in a fab list

* fix(fab-button): update box-shadow for both states

* fix(fab-button): update transition to match md spec
2018-10-25 21:42:19 -05:00
Manu MA
ef6895acbd fix(inputs): disabled handling (#16071) 2018-10-25 22:50:06 +02:00
Adam Bradley
3c7fee5cca test(e2e): relative paths (#16077) 2018-10-24 22:41:48 -05:00
Cam Wiegert
d033a9e544 test(menu): migrate e2e tests (#16032)
references #15803
2018-10-22 17:13:23 -05:00
Adam Bradley
a9fd3399de test(e2e): force roboto font on all systems (#15993) 2018-10-19 15:22:15 -05:00
Manu Mtz.-Almeida
3a4b21457f chore(): update stencil 2018-10-12 11:44:43 -05:00
Manu Mtz.-Almeida
a72fced6fe fix(all): docs for all missing props 2018-10-11 16:24:08 -05:00
Cam Wiegert
ae3271f2d7 test(all): inject test styles on flag 2018-10-11 15:13:23 -05:00
Manu Mtz.-Almeida
545db2e4c4 fix(tabbar): css variables assigned to the host 2018-10-09 15:32:43 -05:00
Daniel Imhoff
2172aa9dae test(screenshot): use Arial for testing 2018-10-09 13:40:31 -05:00
Manu Mtz.-Almeida
64b52b54e4 feat(menu): add new lifeycle events 2018-10-09 09:53:44 -05:00
Manu Mtz.-Almeida
4036db5480 chore(): update readme 2018-10-08 15:46:34 -05:00
Manu Mtz.-Almeida
11aa241dac fix(menu): overlays can block menu closing
fixes #15880
2018-10-08 13:31:27 -05:00
Manu Mtz.-Almeida
d9e0bd33b7 test(menu): fix test 2018-10-02 19:00:44 +02:00
Manu Mtz.-Almeida
08beee3393 fix(menu): menu registers itself before it's ready 2018-10-01 18:18:39 +02:00
Manu Mtz.-Almeida
a5c2cc1835 fix(menu): wait until all menus are ready
fixes #15727
2018-10-01 17:31:55 +02:00
Mike Hartington
a3c85ae301 fix(): add safe area cutouts (#15750)
* fix(): add safe area cutouts

* fix(): adjust safe-area padding

* fix(): safe area improvments

* fix(): safe-area-improvments for padding

* fix(): safe-area improvements for items

* fix(): safe-area fix for core css

* fix(): safe-area fix for list header

* fix(): safe-area fix for popover

* fix(): safe-area validates

* chore(): ci updates

* fix(): safe-area revert padding changes for now

* padding is being applied twice

* safe-area-left is applied to item
2018-09-26 13:01:54 -05:00
Manu Mtz.-Almeida
0379977e1b feat(app): adds _forceStatusbarPadding for ionic lab 2018-09-26 01:13:15 +02:00
Manu Mtz.-Almeida
22e15b4c5b fix(menu): crash when menu if forcedClosed 2018-09-26 00:35:48 +02:00
Manu Mtz.-Almeida
633360fcba fix(all): gesture controller can block scrolling
fixes #15725
2018-09-25 17:46:58 +02:00
Manu Mtz.-Almeida
c49d896e08 refactor(all): using ComponentInterface 2018-09-14 18:47:00 +02:00
Manu Mtz.-Almeida
6e5c035b39 chore(tslint): disable 'no-floating-promises' 2018-09-14 00:50:44 +02:00
Brandy Carney
21d1f2e2dd fix(item): update hostContext to use ion-item element
fixes styling issues with children elements using the .in-item class
2018-09-13 11:46:13 -04:00
Manu Mtz.-Almeida
4876df928d chore(): tslint checks 2018-09-06 21:49:35 +02:00
Manu Mtz.-Almeida
1f24370497 chore(): update tslint 2018-09-04 23:56:58 +02:00
Manu Mtz.-Almeida
281f9a307f fix(menu): ios styles 2018-09-01 18:08:03 +02:00
Manu Mtz.-Almeida
ba2230510e refactor(all): strict boolean conditions 2018-09-01 17:23:03 +02:00
Brandy Carney
4c879900e5 style(core): fix misspellings 2018-08-30 17:06:17 -04:00
Manu MA
096d9a76f3 fix(css): add core.css (#15220)
fixes #15170
2018-08-29 18:05:20 +02:00
Manu Mtz.-Almeida
1d46973785 refactor(all): make all method return a promise 2018-08-28 22:20:10 +02:00