Skip to content

Commit 4b3d3d5

Browse files
authored
chore: create beta.10 with fix for input width specificity (#6711)
1 parent 13fb5b4 commit 4b3d3d5

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<a name="2.0.0-beta.9"></a>
2-
# [2.0.0-beta.9 découpage-panjandrum](https://github.com/angular/material2/compare/2.0.0-beta.8...2.0.0-beta.9) (2017-08-29)
1+
<a name="2.0.0-beta.10"></a>
2+
# [2.0.0-beta.10 découpage-panjandrum](https://github.com/angular/material2/compare/2.0.0-beta.8...2.0.0-beta.10) (2017-08-29)
33

44
### Highlights
55
* Over 140 bug fixes
@@ -43,6 +43,9 @@ still re-exported through `@angular/material`, but these re-exports will be remo
4343
subsequent release.
4444
* `cdkScrollable`, `ScrollDispatcher`, and `ViewportRuler` have been moved from overlay into its
4545
own `scrolling` subpackage in `@angular/cdk`.
46+
* **input:** Inputs have a width of `200px` by default (similar to native input elements). The
47+
width can be overridden by via the `mat-form-field` css class.
48+
* **input:** CSS classes have changed from `mat-input-container-` to `mat-form-field-`.
4649
* **input:** `md-prefix` and `md-suffix` are now `mdPrefix` and `mdSuffix`.
4750
* **portal:** `TemplatePortal` now requires a generic type (C) to align with `TemplateRef`.
4851
This will usually be `any`.
@@ -54,6 +57,8 @@ DOM element to `apply`.
5457
* **datepicker:** You must now use a date object (of whatever type your DateAdapter uses) rather
5558
than a string when setting the value of the datepicker programmatically (through value, ngModel,
5659
or formControl).
60+
* **datepicker:** `mdDatepickerToggle` is now an element `<md-datepicker-toggle>` with a `for`
61+
property that points to the `MdDatepicker` instance
5762
* **datepicker:** `NativeDateAdapter` will now use Angular's LOCALE_ID instead of the browser's
5863
locale.
5964
* **sidenav:** CSS classes have changed from `mat-sidenav-` to `mat-drawer-`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"docs": "gulp docs",
2020
"api": "gulp api-docs"
2121
},
22-
"version": "2.0.0-beta.9",
22+
"version": "2.0.0-beta.10",
2323
"license": "MIT",
2424
"engines": {
2525
"node": ">= 5.4.1"

src/lib/form-field/_form-field-theme.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
$underline-color-warn: mat-color($warn);
2424
$underline-focused-color: mat-color($primary);
2525

26+
// Define the width here so that it is easier for users to override with one css class worth
27+
// of specificity.
28+
.mat-form-field {
29+
width: 200px;
30+
}
31+
2632
.mat-form-field-placeholder {
2733
color: $placeholder-color;
2834
}

src/lib/form-field/form-field.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ $mat-form-field-underline-height: 1px !default;
1111
.mat-form-field {
1212
display: inline-block;
1313
position: relative;
14-
width: 200px;
1514

1615
// To avoid problems with text-align.
1716
text-align: left;

0 commit comments

Comments
 (0)