Go to file
Brandy Carney 94159291b2
feat(components): improve button states and add new css properties (#19440)
Before users had to know the exact opacity that the MD/iOS spec called for in order to change the hover or focused background color. This allows them to change the background without having to know the opacity. 

- changes apply to Action Sheet (Buttons), Back Button, Button, FAB Button, Item, Menu Button, Segment Button, Tab Button
- greatly reduces the requirement by users to set the background hover, focused states for dark modes and custom themes, also eliminates the need to know what the hover opacity is for each based on the spec
- updates the MD dark theme per their spec
- adds a component guide for internal use changing Ionic components

references #18279 fixes #20213 fixes #19965

BREAKING CHANGE:

*Activated Class*

The `activated` class that is automatically added to buttons on press has been renamed to `ion-activated`. This will be more consistent with our `ion-focused` class we add and also will reduce conflicts with user's CSS.

*CSS Variables*

The `--background-hover`, `--background-focused` and `--background-activated` CSS variables on components that render native buttons will now have an opacity automatically set. If you are setting any of these like the following:

```
--background-hover: rgba(44, 44, 44, 0.08);
```

You will likely not see a hover state anymore. It should be updated to only set the desired color:

```
--background-hover: rgba(44, 44, 44);
```

If the opacity desired is something other than what the spec asks for, use:

```
--background-hover: rgba(44, 44, 44);
--background-hover-opacity: 1;
```
2020-01-23 16:57:47 -05:00
.circleci feat(angular): angular 9 support (#19515) 2019-12-18 18:43:59 -05:00
.github feat(components): improve button states and add new css properties (#19440) 2020-01-23 16:57:47 -05:00
.scripts chore(scripts): update angular versions in dist directly 2020-01-06 11:38:17 -05:00
angular chore(ngAdd): use project name in builders 2020-01-23 10:22:11 -05:00
core feat(components): improve button states and add new css properties (#19440) 2020-01-23 16:57:47 -05:00
docs 5.0.0-beta.5 2020-01-17 17:55:15 -05:00
packages fix(react): remove leaving view when routerdirection is back, fixes #20124 (#20268) 2020-01-23 13:10:29 -07:00
vue chore(ionicons): update ionicons to 5.0.0-13 (#19968) 2019-11-22 10:21:41 -05:00
.editorconfig style(): add editorconfig 2015-11-13 21:11:21 -06:00
.gitignore Master react (#18998) 2019-08-13 14:24:44 -06:00
.npmrc chore(package): disable package-lock 2018-07-11 13:41:17 -05:00
BREAKING.md feat(components): improve button states and add new css properties (#19440) 2020-01-23 16:57:47 -05:00
CHANGELOG.md 4.11.9 2020-01-23 13:16:15 -07:00
CODE_OF_CONDUCT.md docs: add code of conduct 2016-01-20 09:00:32 -06:00
LICENSE chore(license): move back to MIT license 2016-01-08 11:22:49 -06:00
README.md fix(): updating link to react readme (#19154) 2019-08-21 17:25:08 -06:00
lerna.json chore(angular-server): init angular-server package (#18950) 2019-07-30 09:50:23 -05:00
package.json chore(angular-server): init angular-server package (#18950) 2019-07-30 09:50:23 -05:00
tsconfig.json chore(angular-server): init angular-server package (#18950) 2019-07-30 09:50:23 -05:00

README.md

Ionic

Ionic is the open-source mobile app development framework that makes it easy to build top quality native and progressive web apps with web technologies.

Ionic is based on Web Components and comes with many significant performance, usability, and feature improvements over the past versions.

Packages

Project Package Version Links
Core @ionic/core version README.md
Angular @ionic/angular version README.md
Vue @ionic/vue version README.md
React @ionic/react version README.md

Looking for the ionic-angular package? Ionic 3 has been moved to the ionic-v3 repo. See Earlier Versions.

Getting Started

Start a new project by following our quick Getting Started guide. We would love to hear from you! If you have any feedback or run into issues using our framework, please file an issue on this repository.

Contributing

Thanks for your interest in contributing! Read up on our guidelines for contributing and then look through our issues with a help wanted label.

Examples

The Ionic Conference App is a full featured Ionic app. It is the perfect starting point for learning and building your own app.

Future Goals

As Ionic components migrate to the web component standard, a goal of ours is to have Ionic components easily work within all of the popular frameworks.

Earlier Versions

The source code for earlier versions of the Ionic Framework may exist in other repositories. Please open issues and pull requests in their respective repositories.