Skip to content

Commit b9cde47

Browse files
author
Adam Bradley
committed
feat(progress): Set progress element's default width to 100%, closes #872
1 parent f8c6660 commit b9cde47

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

scss/_progress.scss

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
/**
3+
* Progress
4+
* --------------------------------------------------
5+
*/
6+
7+
progress {
8+
margin: $progress-margin;
9+
width: $progress-width;
10+
}

scss/_variables.scss

+7
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,13 @@ $input-label-color: $dark !default;
419419
$input-color-placeholder: lighten($dark, 40%) !default;
420420

421421

422+
// Progress
423+
// -------------------------------
424+
425+
$progress-width: 100% !default;
426+
$progress-margin: 15px 0 !default;
427+
428+
422429
// Toggle
423430
// -------------------------------
424431

scss/ionic.scss

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"toggle",
3333
"radio",
3434
"range",
35+
"progress",
3536

3637
// Buttons
3738
"button",

test/html/progress.html

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<html>
2+
<head>
3+
<meta charset="utf-8">
4+
<title>Progress</title>
5+
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
6+
<link href="../../dist/css/ionic.css" rel="stylesheet">
7+
</head>
8+
<body>
9+
10+
<header class="bar bar-header bar-dark">
11+
<h1 class="title">Progress</h1>
12+
</header>
13+
14+
<main class="content padding has-header">
15+
16+
<progress></progress>
17+
18+
<progress value=3 max=10></progress>
19+
20+
<progress value=7 max=10></progress>
21+
22+
<p><a class="button button-secondary" href="./">All CSS Tests</a></p>
23+
</main>
24+
25+
</body>
26+
</html>

0 commit comments

Comments
 (0)