mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(icon): target element for style and add to breaking
This commit is contained in:
@@ -463,11 +463,14 @@ If any `CSS` is being overridden for an icon it will need to change to override
|
||||
**New Usage Example:**
|
||||
|
||||
```css
|
||||
.icon {
|
||||
ion-icon {
|
||||
fill: #000;
|
||||
}
|
||||
```
|
||||
|
||||
_Note: we are no longer adding the `icon` class to an `ion-icon`, so the element should be targeted instead._
|
||||
|
||||
|
||||
### Property Removed
|
||||
|
||||
The `isActive` property has been removed. It only worked for `ios` icons previously. If you would like to switch between an outline and solid icon you should set it in the `name`, or `ios`/`md` attribute and then change it when needed.
|
||||
|
||||
Reference in New Issue
Block a user