Commit Graph

57 Commits

Author SHA1 Message Date
Brandy Carney
b2021fd9c4 fix(theming): update global css variable naming and default values (#16003)
Updates all of the global variables to make sure their naming is consistent, their default values are correct, they are used properly by the related components, and remove any that are not used.

- removes some of the non mode-specific global Sass variables
- updates the md and ios values so that the default is the css variable
with different fallbacks
- removes non-color related css variables from the global file
- fixes item so it uses the background color that is set by the global
file

# Breaking Changes

## Removed Global CSS Variables

The following global CSS variables have been removed for the reasons listed.

| Variable Name                     | Reason                                          |
| ----------------------------------| ------------------------------------------------|
| `--ion-toolbar-color-inactive`    | Unused                                          |
| `--ion-ripple-background-color`   | Unused / Ripple color is based on component     |
| `--ion-header-size`               | Removed in favor of using CSS for h1-h6         |
| `--ion-header-step`               | Removed in favor of using CSS for h1-h6         |

## Renamed Global CSS Variables

The following global CSS variables have been renamed for the reasons listed.

| Old Variable Name                        | New Variable Name                  | Reason                                                                        |
| -----------------------------------------| -----------------------------------| ------------------------------------------------------------------------------|
| `--ion-toolbar-text-color`               | `--ion-toolbar-color`              | Variable is not limited to text color                                         |
| `--ion-toolbar-color-active`             | `--ion-toolbar-color-activated`    | Consistency with our component variables                                      |
| `--ion-tabbar-text-color`                | `--ion-tab-bar-color`              | Variable is not limited to text color                                         |
| `--ion-tabbar-text-color-active`         | `--ion-tab-bar-color-activated`    | Consistency with our component variables                                      |
| `--ion-tabbar-background-color`          | `--ion-tab-bar-background`         | Applies to the background property                                            |
| `--ion-tabbar-background-color-focused`  | `--ion-tab-bar-background-focused` | Applies to the background property                                            |
| `--ion-item-background-color`            | `--ion-item-background`            | Applies to the background property                                            |
| `--ion-item-background-color-active`     | `--ion-item-background-activated`  | Applies to the background property / Consistency with our component variables |
| `--ion-item-text-color`                  | `--ion-item-color`                 | Variable is not limited to text color                                         |
| `--ion-placeholder-text-color`           | `--ion-placeholder-color`          | Consistency with other variables                                              |

Fixes #15989 
Fixes #15559
2018-10-23 12:37:04 -04:00
Adam Bradley
a9fd3399de test(e2e): force roboto font on all systems (#15993) 2018-10-19 15:22:15 -05:00
Manu MA
45b46b4695 fix(angular): generate proxies for ion-tabbar (#15954) 2018-10-15 13:34:07 -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
Manu Mtz.-Almeida
545db2e4c4 fix(tabbar): css variables assigned to the host 2018-10-09 15:32:43 -05:00
Manu Mtz.-Almeida
e3bbfd0b05 refactor(tabs): ion-tabbar can be used in standalone mode 2018-10-09 15:32:43 -05:00
Manu Mtz.-Almeida
3d985871e4 fix(tabs): badgeColor works again
fixes #15559
fixes #14840
2018-10-02 21:33:48 +02:00
Manu Mtz.-Almeida
844c33a024 fix(fab-button): ripple-effect in safari
fixes #15768
2018-09-27 17:06:03 +02:00
Manu Mtz.-Almeida
62eff0a5dc fix(all): safe margins for fab, item-header, tabbar 2018-09-26 20:56:09 +02:00
Juan Miguel
67eb661537 fix(button): disable :hover on non supported devices (#15705) 2018-09-24 13:57:19 -05:00
Manu Mtz.-Almeida
c49d896e08 refactor(all): using ComponentInterface 2018-09-14 18:47:00 +02:00
Brandy Carney
fcb45d12e2 style(components): don't self close tags 2018-09-12 11:38:20 -04:00
Brandy Carney
6ed4690834 style(tap-click): rename activable to activatable 2018-09-12 11:38:20 -04:00
Manu Mtz.-Almeida
dfac9dc4e9 feat(app): hardware back button support 2018-09-03 00:31:21 +02:00
Manu Mtz.-Almeida
e7416435d8 refactor(all): additional tslint rules 2018-09-01 18:06:59 +02:00
Manu Mtz.-Almeida
ba2230510e refactor(all): strict boolean conditions 2018-09-01 17:23:03 +02:00
Manu Mtz.-Almeida
3ffa3cd7db fix(platform): better detect platforms + css API
fixes #15165
fixes #15116
2018-08-25 16:53:31 +02:00
Manu Mtz.-Almeida
4a45effe8c fix(ripple-effect): using method invocation instead of events
fixes #15318
2018-08-24 22:58:12 +02:00
Manu Mtz.-Almeida
f845803c04 chore(angular): update proxies 2018-08-16 15:47:49 +02:00
Manu Mtz.-Almeida
39104cb366 fix(tabbar): fix highlight bar 2018-08-13 18:03:28 +02:00
Manu Mtz.-Almeida
0842939273 refactor(tabbar): removes ion-tab-button 2018-08-12 22:50:52 +02:00
Manu Mtz.-Almeida
d856ecfbbf chore(): update to latest stencil 2018-08-12 12:04:27 +02:00
Brandy Carney
575c5eb292 fix(tabs): get the tabbar layout working with shadow DOM (#15113)
- gets the `tabbarLayout` property working
- update badge position based on tabs layout
- fix the transforms for icon/text and icon size

fixes #14611
2018-08-10 17:41:38 -04:00
Manu Mtz.-Almeida
aa23d08a71 fix(all): safe-area using css variables 2018-08-10 01:41:05 +02:00
Manu Mtz.-Almeida
3da1bf45ba fix(toast): statusbarPadding 2018-08-10 01:08:47 +02:00
Manu Mtz.-Almeida
997cda0667 refactor(scroll): merge into ion-content 2018-08-10 00:07:08 +02:00
Manu Mtz.-Almeida
93b68561c4 chore(): fix lint issue 2018-07-31 00:42:10 +02:00
Manu Mtz.-Almeida
fd8f875a5f fix(app): statusbarPadding 2018-07-30 23:55:16 +02:00
Manu Mtz.-Almeida
c1b61d0fee chore(): update to ionic-rules/strict 2018-07-29 23:10:38 +02:00
Manu Mtz.-Almeida
7292fc7d38 perf(icon): disable icon lazy loading when it's not needed 2018-07-29 16:04:51 +02:00
Manu Mtz.-Almeida
92e21a8cf3 fix(all): updated tslint rules to latest 2018-07-29 13:03:47 +02:00
Manu Mtz.-Almeida
4b844ef1c3 fix(all): accesibility and global styles for hidden nodes 2018-07-24 00:02:13 +02:00
Brandy Carney
7a8d5f68d2 chore(stylelint): remove sass-lint/scss-lint in favor of stylelint
- remove scss-lint and sass-lint
- add stylelint and stylelint-order packages and configuration
- update all *.scss files to new syntax

fixes #14805
2018-07-19 15:10:30 -05:00
Brandy Carney
094fde755c style(css): fix most scss lint errors 2018-07-18 12:53:33 -04:00
Brandy Carney
5348e7c09c fix(tabs): add the colors to the tabbar as well
fixes #14758
2018-07-16 12:15:39 -04:00
Brandy Carney
8aed3bfcf9 fix(tabs): fix the tabs so the color property works on tab button
fixes #14758
2018-07-13 18:09:58 -04:00
Brandy Carney
a6552a7e23 style(components): remove console logs 2018-07-13 13:18:44 -04:00
Manu Mtz.-Almeida
00c4c77542 fix(tab): props are reactive 2018-07-12 18:44:44 +02:00
Adam Bradley
13e0c91ebe docs(readme): update component readmes 2018-07-11 12:26:22 -05:00
Brandy Carney
45583bcebb fix(tabs): update the tabbar placement value to match the property it applies to 2018-07-10 14:42:10 -04:00
Brandy Carney
a7f1f4daa7 refactor(components): update to use shadow DOM and work with css variables
- updates components to use shadow DOM or scoped if they require css variables
- moves global styles to an external stylesheet that needs to be imported
- adds support for additional colors and removes the Sass loops to generate colors for each component
- several property renames, bug fixes, and test updates

Co-authored-by: Manu Mtz.-Almeida <manu.mtza@gmail.com>
Co-authored-by: Adam Bradley <adambradley25@gmail.com>
Co-authored-by: Cam Wiegert <cam@camwiegert.com>
2018-07-09 12:57:21 -04:00
mhartington
96945b1ee1 docs(): usage and examples 2018-06-18 12:45:15 -04:00
Adam Bradley
9872a6c7ee docs(readme): update stencil docs generation readmes 2018-05-30 12:02:31 -05:00
Manu Mtz.-Almeida
618f708bc4 fix(all): strong typing for color 2018-05-14 13:51:30 +02:00
Adam Bradley
a939fa24a2 fix(hover): remove ion-app .enable-hover css 2018-05-02 15:57:33 -05:00
Manu Mtz.-Almeida
8b1452c5c1 fix(lint): import order 2018-04-26 20:18:57 +02:00
Manu Mtz.-Almeida
053c375521 refactor(all): allow external imports 2018-04-24 16:12:02 +02:00
Manu Mtz.-Almeida
ae0541a465 chore(): update dependencies 2018-04-22 20:08:02 +02:00
Manu Mtz.-Almeida
4ea8881f33 refactor(all): enable strictPropertyInitialization 2018-04-19 18:48:38 +02:00