Skip to content

Commit 436981a

Browse files
crisbetommalerba
authored andcommitted
docs: fix up button-types and dialog-content examples (#12320)
* Fixes the scrollable dialog content demo not scrolling properly. Also fixes up some of typography and alignment. * Fixes the spacing and alignment on the `button-types` demo.
1 parent c3e3dcb commit 436981a

File tree

3 files changed

+61
-30
lines changed

3 files changed

+61
-30
lines changed
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
.example-button-row {
2-
display: flex;
3-
align-items: center;
4-
justify-content: space-around;
5-
}
6-
7-
.example-button-row button,
8-
.example-button-row a {
1+
.button-row button,
2+
.button-row a {
93
margin-right: 8px;
104
}
Lines changed: 58 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,64 @@
11
<h2 mat-dialog-title>Install Angular</h2>
2-
<mat-dialog-content>
3-
<h3>DEVELOP ACROSS ALL PLATFORMS</h3>
4-
<p>Learn one way to build applications with Angular and reuse your code and abilities to build
2+
<mat-dialog-content class="mat-typography">
3+
<h3>Develop across all platforms</h3>
4+
<p>Learn one way to build applications with Angular and reuse your code and abilities to build
55
apps for any deployment target. For web, mobile web, native mobile and native desktop.</p>
6-
7-
<h3>SPEED &amp; PERFORMANCE</h3>
8-
<p>Achieve the maximum speed possible on the Web Platform today, and take it further, via Web
9-
Workers and server-side rendering. Angular puts you in control over scalability. Meet huge data requirements
10-
by building data models on RxJS, Immutable.js or another push-model.</p>
11-
12-
<h3>INCREDIBLE TOOLING</h3>
13-
<p>Build features quickly with simple, declarative templates. Extend the template language with your own
14-
components and use a wide array of existing components. Get immediate Angular-specific help and feedback
15-
with nearly every IDE and editor. All this comes together so you can focus on building amazing apps rather
16-
than trying to make the code work.</p>
17-
18-
<h3>LOVED BY MILLIONS</h3>
19-
<p>From prototype through global deployment, Angular delivers the productivity and scalable infrastructure
20-
that supports Google's largest applications.</p>
6+
7+
<h3>Speed &amp; Performance</h3>
8+
<p>Achieve the maximum speed possible on the Web Platform today, and take it further, via Web
9+
Workers and server-side rendering. Angular puts you in control over scalability. Meet huge
10+
data requirements by building data models on RxJS, Immutable.js or another push-model.</p>
11+
12+
<h3>Incredible tooling</h3>
13+
<p>Build features quickly with simple, declarative templates. Extend the template language with
14+
your own components and use a wide array of existing components. Get immediate Angular-specific
15+
help and feedback with nearly every IDE and editor. All this comes together so you can focus
16+
on building amazing apps rather than trying to make the code work.</p>
17+
18+
<h3>Loved by millions</h3>
19+
<p>From prototype through global deployment, Angular delivers the productivity and scalable
20+
infrastructure that supports Google's largest applications.</p>
21+
22+
<h3>What is Angular?</h3>
23+
24+
<p>Angular is a platform that makes it easy to build applications with the web. Angular
25+
combines declarative templates, dependency injection, end to end tooling, and integrated
26+
best practices to solve development challenges. Angular empowers developers to build
27+
applications that live on the web, mobile, or the desktop</p>
28+
29+
<h3>Architecture overview</h3>
30+
31+
<p>Angular is a platform and framework for building client applications in HTML and TypeScript.
32+
Angular is itself written in TypeScript. It implements core and optional functionality as a
33+
set of TypeScript libraries that you import into your apps.</p>
34+
35+
<p>The basic building blocks of an Angular application are NgModules, which provide a compilation
36+
context for components. NgModules collect related code into functional sets; an Angular app is
37+
defined by a set of NgModules. An app always has at least a root module that enables
38+
bootstrapping, and typically has many more feature modules.</p>
39+
40+
<p>Components define views, which are sets of screen elements that Angular can choose among and
41+
modify according to your program logic and data. Every app has at least a root component.</p>
42+
43+
<p>Components use services, which provide specific functionality not directly related to views.
44+
Service providers can be injected into components as dependencies, making your code modular,
45+
reusable, and efficient.</p>
46+
47+
<p>Both components and services are simply classes, with decorators that mark their type and
48+
provide metadata that tells Angular how to use them.</p>
49+
50+
<p>The metadata for a component class associates it with a template that defines a view. A
51+
template combines ordinary HTML with Angular directives and binding markup that allow Angular
52+
to modify the HTML before rendering it for display.</p>
53+
54+
<p>The metadata for a service class provides the information Angular needs to make it available
55+
to components through Dependency Injection (DI).</p>
56+
57+
<p>An app's components typically define many views, arranged hierarchically. Angular provides
58+
the Router service to help you define navigation paths among views. The router provides
59+
sophisticated in-browser navigational capabilities.</p>
2160
</mat-dialog-content>
22-
<mat-dialog-actions>
61+
<mat-dialog-actions align="end">
2362
<button mat-button mat-dialog-close>Cancel</button>
2463
<button mat-button [mat-dialog-close]="true" cdkFocusInitial>Install</button>
2564
</mat-dialog-actions>

src/material-examples/dialog-content/dialog-content-example.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ export class DialogContentExample {
1313
constructor(public dialog: MatDialog) {}
1414

1515
openDialog() {
16-
const dialogRef = this.dialog.open(DialogContentExampleDialog, {
17-
height: '350px'
18-
});
16+
const dialogRef = this.dialog.open(DialogContentExampleDialog);
1917

2018
dialogRef.afterClosed().subscribe(result => {
2119
console.log(`Dialog result: ${result}`);

0 commit comments

Comments
 (0)