Commit Graph

50 Commits

Author SHA1 Message Date
Kelvin Dart
346ecb2a3c fix(item-option): styling and behaviour for disabled item-option (#17909)
fixes #17905
2019-03-28 14:20:29 -04:00
pwespi
29d0d0ef28 chore(): update beta url refs #17900) 2019-03-28 08:29:20 -04:00
Brandy Carney
ceae5d20d7 fix(alert): update styles for rtl (#17129)
- apply border correctly to 2 button mode in iOS
- radio: position icon correctly (fixes #16295)
- checkbox: position icon correctly
- remove scrollbar with radio/checkbox
- updates e2e test to include rtl

https://screenshot.ionicframework.com/5447404/d8bad6a

references #17012
2019-01-16 15:38:08 -05:00
Adam Bradley
c2fe9175bf refactor(rtl): use css logical properties for padding/margin (#16987)
* refactor(rtl): use css logical properties for padding/margin

* fix(item-divider): fix padding

* test(rtl): add item basic rtl script

* fix(rtl): update core/src/themes/ionic.mixins.scss

* refactor(rtl): wrap css logical props with @supports

* refactor(rtl): do not use css logical properties for hardcoded 0 values
2019-01-15 10:43:00 -06:00
Manu MA
0120eee8d4 fix(inputs): fix styles in firefox (#17066) 2019-01-11 20:28:56 +01:00
Brandy Carney
82457d874b fix(action-sheet): remove the height shift on press and update iOS design (#16862)
This changes the border into a linear gradient background image which allows us to avoid the height decrease on press and have the same border as the background color when pressed.

- merges all action sheet tests to the basic directory (except standalone, translucent), references #16715
- removes the height shift on press, fixes #16790
- fixes the cancel button on iOS so it is `#ffffff` by default
- gets the look of the action sheet closer to native for iOS
- only applies the translucent and backdrop filter if it is supported by the browser (chrome will not show transparent anymore)
- updates documentation to describe when translucent will show up
- adds documentation on how to use screenshot tests
2019-01-10 18:13:31 -05: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
0699884d10 fix(body): body background matches ion-content 2018-12-16 20:44:10 +01:00
Manu MA
e8cec60faf fix(fab-button): adding size prop instead of [mini] (#16692)
- Consistency with rest of API
- Auto docs
- Helps react

fixes #16680
2018-12-14 23:16:20 +01:00
Paul Stelzer
6b0fc49519 fix(refresher): close animation and hidden on pull down (#16700)
fixes #16254
2018-12-12 15:21:59 +01:00
Brandy Carney
86fc9a557e fix(toolbar): style all slotted content in order not only buttons (#16617)
- style all slotted content to order properly in a toolbar, not only buttons
- removes duplicated sass variables
- use current color in select so icon will inherit toolbar color

BREAKING CHANGES

- Removes `--icon-color` and `--placeholder-color` from select in favor of inheritance with opacity
2018-12-07 17:55:59 -05:00
Manu Mtz.-Almeida
95c0b1bac7 feat(theme): default colors based in step colors 2018-12-06 21:06:05 +01:00
Brandy Carney
8029df344a fix(segment): set colors in the parent segment and remove the unused color property (#16590)
* style(theming): clean up sass TODOs

* fix(item): use proper padding on small buttons in an item

* refactor(components): remove color from unused components

* chore(components): update build files to remove color

* fix(tab-bar): remove unused layout prop

* test(segment): add custom test and update standalone

* docs(segment): update usage examples to remove layout

* test(segment): update tests to remove layout

* test(tab-bar): update tests to remove layout

* fix(segment): set the colors in the parent segment

but use them in the child segment button

This allows the user to customize all of the segment buttons from segment, while still allowing the `color` property to take precedence, and they can also edit the segment button colors directly if desired.

This actually fixes some bugs surrounding colors and allows customization for a segment inside of a toolbar.

references #14853

* style(sass): fix lint errors

* chore(build): build files

* fix(segment-button): use transparent background

* docs(segment-button): add color activated back

* why does the build hate me

* fix(segment): set initial css variables to avoid inheriting

* fix(segment): set initial color activated

also add new line to the nav readme because reasons

* test(segment): parent mode should match children
2018-12-06 00:12:14 +01:00
Brandy Carney
7b3233f0b5 refactor(themes): combine background/color steps to one var (#16543)
closes #16202

BREAKING CHANGES

The background and text stepped color variables have been combined to one set of stepped variables. See the documentation for more information: https://beta.ionicframework.com/docs/theming/advanced#stepped-colors
2018-11-30 17:44:55 -05:00
Brandy Carney
12bcb415ee fix(themes): update default toolbar and tab background to #fff (#16454)
fixes #16384

BREAKING CHANGES

The default background color for the Toolbar and Tab Bar is now white (#fff).

This can be changed by overriding the following CSS variables:

```
--ion-toolbar-background
--ion-tab-bar-background
--ion-tab-bar-background-focused
```

See https://beta.ionicframework.com/docs/theming/css-variables for more information.
2018-11-26 13:01:56 -05:00
Brandy Carney
188a63546a fix(toast): update toast design to match MD spec (#16323)
Updates the Material Design Toast to closer match the spec: https://material.io/design/components/snackbars.html

- Updates the animation to use opacity, not translate
- Updates design with the right background, box-shadow, etc.
- Fixes the broken position middle of toast and updates e2e test to include this
- Allows for line breaks to be passed in the message

fixes #16271
2018-11-14 15:21:27 -05:00
Manu Mtz.-Almeida
9da51b3984 fix(checkbox): end position by default 2018-10-31 14:46:46 +01:00
Brandy Carney
068303d4d1 fix(action-sheet): update Action Sheet design to match MD spec (#16135)
- Updates Action Sheet styles for Material Design
- Modifies overlay background to #fff (affects alert too)
- Adds a "spec" e2e test which can be used to compare against the spec
2018-10-29 17:59:26 -04:00
Cam Wiegert
018fb9876f test(all): use test() instead of it() where appropriate (#16129)
This replaces uses of Jest's it() function in end-to-end tests with the alias test() where it makes sense semantically.
2018-10-29 12:40:06 -05: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
Adam Bradley
3c7fee5cca test(e2e): relative paths (#16077) 2018-10-24 22:41:48 -05:00
Adam Bradley
02ed9f96fa test(e2e): update body font family (#16065) 2018-10-24 11:09:41 -05:00
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
Brandy Carney
b790073d77 style(themes): remove duplicate variable and add default 2018-10-11 13:45:20 -05:00
Daniel Imhoff
2172aa9dae test(screenshot): use Arial for testing 2018-10-09 13:40:31 -05:00
Manu Mtz.-Almeida
62eff0a5dc fix(all): safe margins for fab, item-header, tabbar 2018-09-26 20:56:09 +02:00
Manu MA
096d9a76f3 fix(css): add core.css (#15220)
fixes #15170
2018-08-29 18:05:20 +02:00
Manu Mtz.-Almeida
c957ea6bcc fix(all): add customization of font-style 2018-08-24 03:50:23 +02:00
Brandy Carney
7e2aa5516e refactor(sass): change order of Sass imports to use global vars
This allows us to use the variables in ionic.theme.default without
having to import it. This new order is consistent with how the mode
specific globals already work.
2018-08-16 11:42:08 -04:00
Manu Mtz.-Almeida
6e3e07bc8b fix(all): improve text customization 2018-08-10 00:36:07 +02:00
Manu Mtz.-Almeida
fd8f875a5f fix(app): statusbarPadding 2018-07-30 23:55:16 +02:00
Manu Mtz.-Almeida
25423a06f2 fix(button): improve text style inherency
related #14927
2018-07-29 13:19:28 +02:00
Manu Mtz.-Almeida
517104fbc7 fix(inputs): better customization for placeholder color 2018-07-28 17:26:10 +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
Manu Mtz.-Almeida
9aedfc60aa fix(anchor): inner <a> inherits text styles 2018-07-12 11:56:32 +02: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
Brandy Carney
71faf3681a refactor(grid): update to support dynamic number of columns
- adds size, offset, push, and pull (including specific breakpoints) as
properties of ion-col
- removes old css mixins to instead style the element itself
- updates sass variables to use css variables for grid padding and width
2018-06-18 11:33:58 -04:00
Adam Bradley
fb4353c97d feat(dir): default to ltr css, rtl overrides w/ [dir=rtl] selectors 2018-05-22 12:08:45 -05:00
Brandy Carney
ae1028d91e fix(theming): update contrast colors 2018-05-03 15:37:12 -05:00
Brandy Carney
6c2d53914d fix(app): fix the statusbar-padding to match new structure 2018-05-02 17:14:21 -05:00
Manu Mtz.-Almeida
86a6cde4a1 perf(platform): remove from critical path 2018-04-18 23:06:56 +02:00
Ross Gerbasi
6c6f867ce4 refactor(sass): tweaks to the alpha css variables (#14223)
* alpha tweaks

* added alpha-input
cleanup for theme-builder

* removed global variables

* style(searchbar): fix indentation

closes #14196
2018-03-30 10:27:58 -04:00
Brandy Carney
a1346a9e89 style(sass): update sass linters and fix lint errors 2018-03-28 18:24:05 -04:00
Brandy Carney
88752dea51 style(sass): move font smooth to mixin and remove webkit properties
autoprefixer is adding the backdrop-filter for us now
2018-03-28 18:24:04 -04:00
Manu Mtz.-Almeida
77fc792644 feat(ripple): css variable color 2018-03-24 03:57:18 +01:00
Ross Gerbasi
147a6090e4 refactor(theming): alpha color refactor and theme cleanup (#14161)
* Cleanup for iOS mode used in material variables
Refactor to alpha variables for colors in the color map
updated theme builder with new alpha variables
updated theme builder with duplicate default CSS modes

* moved alpha transform into css-var
removed ion-color-alpha
fixes for disabled css-variable mode
added defaults for user configurable variables

* revert to spinner related code
2018-03-15 11:53:48 -04:00
Amit Moryossef
ba63d01f78 perf(scss): optimize multi dir (#14156)
https://github.com/ionic-team/ionic/pull/12143
2018-03-12 18:01:51 -04:00
Brandy Carney
d37623a2ca chore(packages): move the packages to root 2018-03-12 16:02:25 -04:00