mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(changelog): label attr refactor
This commit is contained in:
32
CHANGELOG.md
32
CHANGELOG.md
@@ -15,6 +15,7 @@
|
||||
* Inputs are now placed inside of `ion-item`
|
||||
* Inputs do not come with their own label
|
||||
* `ion-item-content` has been replaced with `ion-label`
|
||||
* Label attributes are placed on `ion-label` rather than `ion-input`
|
||||
* Native HTML `<input>` and `<textarea>` should not be used in items, but instead `<ion-input>` and `<ion-textarea>`
|
||||
|
||||
|
||||
@@ -169,6 +170,37 @@ Now:
|
||||
```
|
||||
|
||||
|
||||
##### Label Attribute Refactor
|
||||
|
||||
Was:
|
||||
|
||||
```
|
||||
<ion-input fixed-label>
|
||||
<ion-label>Username</ion-label>
|
||||
<input type="text">
|
||||
</ion-input>
|
||||
|
||||
<ion-input floating-label>
|
||||
<ion-label>Email</ion-label>
|
||||
<input type="email">
|
||||
</ion-input>
|
||||
```
|
||||
|
||||
Now:
|
||||
|
||||
```
|
||||
<ion-input>
|
||||
<ion-label fixed>Username</ion-label>
|
||||
<ion-input></ion-input>
|
||||
</ion-input>
|
||||
|
||||
<ion-input>
|
||||
<ion-label floating>Email</ion-label>
|
||||
<ion-input type="email"></ion-input>
|
||||
</ion-input>
|
||||
```
|
||||
|
||||
|
||||
<a name="2.0.0-alpha.52"></a>
|
||||
# 2.0.0-alpha.52 (2016-01-25)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user