Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit b486a41

Browse files
nnmrtsSplaktar
andauthored
feat(input): add animation to color change (#10079)
* feat(input): add animation to color change - add animation to color change when clicking inside an `md-input` field - previous behaviour was an instant color change - which doesn't harmonize with material design guidelines - use variables for duration and curve of transition Co-authored-by: Michael Prentice <[email protected]>
1 parent b391c68 commit b486a41

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4789,4 +4789,4 @@ Additionally, accessibility support is added to material-button, material-checkb
47894789
* **material-switch:** add switch component ([4975c743](https://github.com/angular/material/commit/4975c7432b814c1e401a48c8e5601ec7a30fa477), closes [#80](https://github.com/angular/material/issues/80))
47904790
* **slider:** add full-featured slider component ([5ea4dbc2](https://github.com/angular/material/commit/5ea4dbc2cbb778884bb164d91fcf9b6262987e52), closes [#260](https://github.com/angular/material/issues/260), [#31](https://github.com/angular/material/issues/31))
47914791
* **switch:** add focus styles ([8878ca7a](https://github.com/angular/material/commit/8878ca7aed861ac4c667cc96de61b8c2e09f9bac))
4792-
* **tabs:** improvements to pagination, disabled tabs, and tab navigation. ([b4244bf3](https://github.com/angular/material/commit/b4244bf3a2d9b97c78361fd0b0189919a710e394))
4792+
* **tabs:** improvements to pagination, disabled tabs, and tab navigation. ([b4244bf3](https://github.com/angular/material/commit/b4244bf3a2d9b97c78361fd0b0189919a710e394))

src/components/input/input.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ md-input-container {
155155
-ms-flex-preferred-size: $input-line-height; //IE fix
156156
border-radius: 0;
157157
border-style: solid; // Firefox fix
158+
transition: border-color $swift-ease-out-duration $swift-ease-out-timing-function;
158159

159160
// Fix number inputs in Firefox to be full-width
160161
width: 100%;

0 commit comments

Comments
 (0)