From 0bc513f0d3da644603c489b7d2cc7876783fb095 Mon Sep 17 00:00:00 2001
From: Brian Nenninger
Date: Sun, 24 Apr 2016 14:21:43 -0400
Subject: [PATCH 1/2] Use instead of in
demos.
---
src/components/button/README.md | 22 ++++++++++----------
src/components/icon/icon.scss | 2 --
src/components/list/README.md | 28 +++++++++++++-------------
src/demo-app/button/button-demo.html | 24 +++++++++++-----------
src/demo-app/button/button-demo.ts | 3 ++-
src/demo-app/input/input-demo.html | 6 +++---
src/demo-app/input/input-demo.scss | 2 ++
src/demo-app/input/input-demo.ts | 3 ++-
src/demo-app/list/list-demo.html | 4 ++--
src/demo-app/list/list-demo.scss | 2 +-
src/demo-app/list/list-demo.ts | 3 ++-
src/demo-app/toolbar/toolbar-demo.html | 18 ++++++++---------
src/demo-app/toolbar/toolbar-demo.ts | 3 ++-
13 files changed, 62 insertions(+), 58 deletions(-)
diff --git a/src/components/button/README.md b/src/components/button/README.md
index df9bb47b2cc5..dbf36dc73985 100644
--- a/src/components/button/README.md
+++ b/src/components/button/README.md
@@ -27,23 +27,23 @@ There are five types of buttons:
* Defaults background to "accent" palette defined in theme
* Box shadow applied
* 40 by 40 px
-
+
Each is an attribute directive that you can add to a `button` or `a` tag. You can provide custom content to the button by inserting it
between the tags, as you would with a normal button.
-
+
Example:
-
+
```html
```
@@ -53,13 +53,13 @@ Output:
### Theming
-All button types can be themed to match your "primary" palette, your "accent" palette, or your "warn" palette using the `color` attribute.
+All button types can be themed to match your "primary" palette, your "accent" palette, or your "warn" palette using the `color` attribute.
Simply pass in the palette name.
-In flat buttons, the palette chosen will affect the text color, while in other buttons, it affects the background.
+In flat buttons, the palette chosen will affect the text color, while in other buttons, it affects the background.
Example:
-
+
```html
@@ -90,8 +90,8 @@ Output:
* In high contrast mode, a strong border is added to the button to make it easier to see.
* Button focus events originating from the keyboard will retain focus styles, while button focus events from the mouse will not.
* As `md-button` is added to an existing `button` or `a` tag, it enjoys all the accessibility natively built into these elements.
-
-
+
+
### Upcoming work
We will also be adding ink ripples to buttons in an upcoming milestone.
diff --git a/src/components/icon/icon.scss b/src/components/icon/icon.scss
index 1fa23d71bc13..a8bd0cebe37d 100644
--- a/src/components/icon/icon.scss
+++ b/src/components/icon/icon.scss
@@ -13,7 +13,5 @@ md-icon {
display: inline-block;
fill: currentColor;
height: $md-icon-size;
- margin: auto;
- vertical-align: middle;
width: $md-icon-size;
}
diff --git a/src/components/list/README.md b/src/components/list/README.md
index 4f9ced0631b2..74ea93547ed5 100644
--- a/src/components/list/README.md
+++ b/src/components/list/README.md
@@ -32,8 +32,8 @@ Output:
### Multi-line lists
-If your list requires multiple lines per list item, annotate each line with an `md-line` attribute.
-You can use whichever heading tag is appropriate for your DOM hierarchy (doesn't have to be `h3`),
+If your list requires multiple lines per list item, annotate each line with an `md-line` attribute.
+You can use whichever heading tag is appropriate for your DOM hierarchy (doesn't have to be `h3`),
as long as the `md-line` attribute is included.
```html
@@ -62,13 +62,13 @@ Two line list output:
-Three line list output:
+Three line list output:
### Lists with avatars
-To include an avatar, add an image tag with an `md-list-avatar` attribute.
+To include an avatar, add an image tag with an `md-list-avatar` attribute.
```html
@@ -86,11 +86,11 @@ To include an avatar, add an image tag with an `md-list-avatar` attribute.
Output:
-
+
### Dense lists
-Lists are also available in "dense layout" mode, which shrinks the font size and height of the list
-to suit UIs that may need to display more information. To enable this mode, add a `dense` attribute
-to the main `md-list` tag.
+Lists are also available in "dense layout" mode, which shrinks the font size and height of the list
+to suit UIs that may need to display more information. To enable this mode, add a `dense` attribute
+to the main `md-list` tag.
```html
@@ -114,17 +114,17 @@ use `` tags.
Folders
- folder
+ folder
{{folder.name}}
{{folder.updated}}
Notes
- note
+ note
{{note.name}}
{{note.updated}}
-
+
```
@@ -151,13 +151,13 @@ If you require a more complex nav list (e.g. with more than one target per item)
{{ link }}
```
### Lists with secondary text
-Secondary text styling will be part of a broader typography module to
-[come later](https://github.com/angular/material2/issues/205), and won’t be implemented as part of this component
+Secondary text styling will be part of a broader typography module to
+[come later](https://github.com/angular/material2/issues/205), and won’t be implemented as part of this component
specifically. Gray text in the examples above comes from a "demo-2" class added manually by the demo.
\ No newline at end of file
diff --git a/src/demo-app/button/button-demo.html b/src/demo-app/button/button-demo.html
index a6e25ecb431c..3b4d4beeffa3 100644
--- a/src/demo-app/button/button-demo.html
+++ b/src/demo-app/button/button-demo.html
@@ -3,10 +3,10 @@
@@ -14,10 +14,10 @@
linklink
- check
+ check
- check
+ check
@@ -35,27 +35,27 @@
@@ -69,11 +69,11 @@
off
diff --git a/src/demo-app/button/button-demo.ts b/src/demo-app/button/button-demo.ts
index 8304c19ac193..07aedc1ac3f7 100644
--- a/src/demo-app/button/button-demo.ts
+++ b/src/demo-app/button/button-demo.ts
@@ -1,11 +1,12 @@
import {Component} from 'angular2/core';
import {MdButton, MdAnchor} from '../../components/button/button';
+import {MdIcon} from '../../components/icon/icon';
@Component({
selector: 'button-demo',
templateUrl: 'demo-app/button/button-demo.html',
styleUrls: ['demo-app/button/button-demo.css'],
- directives: [MdButton, MdAnchor]
+ directives: [MdButton, MdAnchor, MdIcon]
})
export class ButtonDemo {
isDisabled: boolean = false;
diff --git a/src/demo-app/input/input-demo.html b/src/demo-app/input/input-demo.html
index 0c466a9e722a..6e7b157dc93b 100644
--- a/src/demo-app/input/input-demo.html
+++ b/src/demo-app/input/input-demo.html
@@ -85,10 +85,10 @@
- I favoritebold placeholder
+ I favoritebold placeholder
- I also homeitalic hint labels
+ I also homeitalic hint labels