Skip to content

Commit 096a01c

Browse files
committed
fix(labels): Fix .input-label's width for androids w/out full flex box support, #998
1 parent 87d3a25 commit 096a01c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

scss/_form.scss

+2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ textarea {
111111

112112
.input-label {
113113
@include flex(1, 0, 100px);
114+
display: table;
114115
padding: 7px 10px 7px 3px;
115116
max-width: 200px;
117+
width: 35%;
116118
color: $input-label-color;
117119
font-weight: bold;
118120
font-size: $font-size-base;

test/html/input-text.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
<link href="../../dist/css/ionic.css" rel="stylesheet">
77
<script src="../../dist/js/ionic.bundle.js"></script>
88
<script>
9-
angular.module('ionicApp', ['ionic'])
9+
angular.module('ionicApp', ['ionic']);
1010
</script>
1111
</head>
12-
<body class="ionic-pseudo" ng-app="ionicApp">
12+
<body ng-app="ionicApp">
1313

1414
<header class="bar bar-header bar-dark">
1515
<h1 class="title">Text Inputs</h1>
1616
</header>
1717

18-
<ion-content has-header="true">
18+
<ion-content class="has-header">
1919

2020
<h3>Default Text Input, Not Inset, No Content Padding</h3>
2121
<div class="list">
@@ -239,7 +239,7 @@ <h3>Default Text Input, list-inset, No Parent Content Padding</h3>
239239
<h3>Stacked Label On Top Of Text Input, No Parent Content Padding</h3>
240240
<div class="list">
241241
<label class="item item-input item-stacked-label">
242-
<i class="icon ion-email"></i>
242+
<i class="icon ion-email"></i>
243243
<span class="input-label">Email</span>
244244
<input type="text" placeholder="[email protected]">
245245
</label>
@@ -250,7 +250,7 @@ <h3>Stacked Label On Top Of Text Input, No Parent Content Padding</h3>
250250
<h3>Stacked Label On Top Of Text Input, With Parent Content Padding</h3>
251251
<div class="list">
252252
<label class="item item-input item-stacked-label">
253-
<i class="icon ion-cloud"></i>
253+
<i class="icon ion-cloud"></i>
254254
<span class="input-label">SaaS</span>
255255
<input type="text" placeholder="Codiqa">
256256
</label>
@@ -259,7 +259,7 @@ <h3>Stacked Label On Top Of Text Input, With Parent Content Padding</h3>
259259
<h3>Stacked Label On Top Of Text Input, list-inset, With Parent Content Padding</h3>
260260
<div class="list list-inset">
261261
<label class="item item-input item-stacked-label">
262-
<i class="icon ion-headphone"></i>
262+
<i class="icon ion-headphone"></i>
263263
<span class="input-label">Favorite Music</span>
264264
<input type="text" placeholder="Bee Gees">
265265
</label>

0 commit comments

Comments
 (0)