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

Commit

Permalink
fix(input): fixes alignment issues between textareas and inputs
Browse files Browse the repository at this point in the history
Fixes #5462. Closes #5682.
  • Loading branch information
Robert Messerle authored and ThomasBurleson committed Nov 23, 2015
1 parent a120a35 commit b2b4c93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/build.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var fs = require('fs');
var versionFile = __dirname + '/../dist/commit';

module.exports = {
ngVersion: '1.4.6',
ngVersion: '1.4.7',
version: pkg.version,
repository: pkg.repository.url
.replace(/^git/,'https')
Expand Down
7 changes: 7 additions & 0 deletions src/components/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ $icon-offset : 36px !default;
$icon-float-focused-top: -8px !default;

md-input-container {
@include pie-clearfix();
display: inline-block;

This comment has been minimized.

Copy link
@allanfuentes

allanfuentes Jan 16, 2016

Clear

position: relative;
padding: $input-container-padding;
Expand Down Expand Up @@ -156,6 +157,11 @@ md-input-container {
width: 100%;
box-sizing: border-box;

// Hacky fix to force vertical alignment between `input` and `textarea`
// Input and textarea do not align by default:
// http://jsbin.com/buqomevage/1/edit?html,css,js,output
float: left;

&:focus {
outline: none;
}
Expand Down Expand Up @@ -191,6 +197,7 @@ md-input-container {
transition: $swift-ease-out;
transition-duration: $swift-ease-out-duration / 1.5;
opacity: 0;
clear: left;

.md-char-counter {
position: absolute;
Expand Down

0 comments on commit b2b4c93

Please sign in to comment.