Skip to content

Commit

Permalink
chore: create beta.10 with fix for input width specificity (#6711)
Browse files Browse the repository at this point in the history
  • Loading branch information
jelbourn authored Aug 29, 2017
1 parent 13fb5b4 commit 4b3d3d5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<a name="2.0.0-beta.9"></a>
# [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)
<a name="2.0.0-beta.10"></a>
# [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)

### Highlights
* Over 140 bug fixes
Expand Down Expand Up @@ -43,6 +43,9 @@ still re-exported through `@angular/material`, but these re-exports will be remo
subsequent release.
* `cdkScrollable`, `ScrollDispatcher`, and `ViewportRuler` have been moved from overlay into its
own `scrolling` subpackage in `@angular/cdk`.
* **input:** Inputs have a width of `200px` by default (similar to native input elements). The
width can be overridden by via the `mat-form-field` css class.
* **input:** CSS classes have changed from `mat-input-container-` to `mat-form-field-`.
* **input:** `md-prefix` and `md-suffix` are now `mdPrefix` and `mdSuffix`.
* **portal:** `TemplatePortal` now requires a generic type (C) to align with `TemplateRef`.
This will usually be `any`.
Expand All @@ -54,6 +57,8 @@ DOM element to `apply`.
* **datepicker:** You must now use a date object (of whatever type your DateAdapter uses) rather
than a string when setting the value of the datepicker programmatically (through value, ngModel,
or formControl).
* **datepicker:** `mdDatepickerToggle` is now an element `<md-datepicker-toggle>` with a `for`
property that points to the `MdDatepicker` instance
* **datepicker:** `NativeDateAdapter` will now use Angular's LOCALE_ID instead of the browser's
locale.
* **sidenav:** CSS classes have changed from `mat-sidenav-` to `mat-drawer-`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"docs": "gulp docs",
"api": "gulp api-docs"
},
"version": "2.0.0-beta.9",
"version": "2.0.0-beta.10",
"license": "MIT",
"engines": {
"node": ">= 5.4.1"
Expand Down
6 changes: 6 additions & 0 deletions src/lib/form-field/_form-field-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
$underline-color-warn: mat-color($warn);
$underline-focused-color: mat-color($primary);

// Define the width here so that it is easier for users to override with one css class worth
// of specificity.
.mat-form-field {
width: 200px;
}

.mat-form-field-placeholder {
color: $placeholder-color;
}
Expand Down
1 change: 0 additions & 1 deletion src/lib/form-field/form-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ $mat-form-field-underline-height: 1px !default;
.mat-form-field {
display: inline-block;
position: relative;
width: 200px;

// To avoid problems with text-align.
text-align: left;
Expand Down

0 comments on commit 4b3d3d5

Please sign in to comment.