Skip to content

Commit f13713e

Browse files
crisbetojelbourn
authored andcommitted
docs: consistent links to Material spec (#11288)
Currently we've got links either pointing to google.com/design or material.io. These changes make everything consistent by pointing everything to material.io. Also fixes a couple of links that were pointing to a 404.
1 parent ff34dac commit f13713e

File tree

10 files changed

+26
-22
lines changed

10 files changed

+26
-22
lines changed

guides/elevation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Angular Material's elevation classes and mixins allow you to add separation between elements along
22
the z-axis. All material design elements have resting elevations. In addition, some elements may
33
change their elevation in response to user interaction. The
4-
[Material Design spec](https://material.io/guidelines/material-design/elevation-shadows.html)
4+
[Material Design spec](https://material.io/design/environment/elevation.html)
55
explains how to best use elevation.
66

77
Angular Material provides two ways to control the elevation of elements: predefined CSS classes

guides/theming-your-components.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,18 @@ For more details about the theming functions, see the comments in the
4747
#### Best practices using `@mixin`
4848
When using `@mixin`, the theme file should only contain the definitions that are affected by the passed-in theme.
4949

50-
All styles that are not affected by the theme should be placed in a `candy-carousel.scss` file. This file should contain everything that is not affected by the theme like sizes, transitions...
50+
All styles that are not affected by the theme should be placed in a `candy-carousel.scss` file.
51+
This file should contain everything that is not affected by the theme like sizes, transitions...
5152

52-
Styles that are affected by the theme should be placed in a separated theming file as `_candy-carousel-theme.scss` and the file should have a `_` before the name. This file should contain the `@mixin` function responsible for applying the theme to the component.
53+
Styles that are affected by the theme should be placed in a separated theming file as
54+
`_candy-carousel-theme.scss` and the file should have a `_` before the name. This file should
55+
contain the `@mixin` function responsible for applying the theme to the component.
5356

5457

5558
### Using colors from a palette
56-
You can consume the theming functions and Material palette variables from `@angular/material/theming`.
57-
You can use the `mat-color` function to extract a specific color from a palette. For example:
59+
You can consume the theming functions and Material palette variables from
60+
`@angular/material/theming`. You can use the `mat-color` function to extract a specific color
61+
from a palette. For example:
5862

5963
```scss
6064
// Import theming functions
@@ -67,7 +71,7 @@ You can use the `mat-color` function to extract a specific color from a palette.
6771
// hues (default, lighter, darker), or any of the aforementioned prefixed with "-contrast".
6872
// For example a hue of "darker-contrast" gives a light color to contrast with a "darker" hue.
6973
// Note that quotes are needed when using a numeric hue with the "-contrast" modifier.
70-
// Available color palettes: https://www.google.com/design/spec/style/color.html
74+
// Available color palettes: https://material.io/design/color/
7175
.candy-carousel {
7276
background-color: mat-color($candy-app-primary);
7377
border-color: mat-color($candy-app-accent, A400);

guides/theming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ A typical theme file will look something like this:
7575

7676
// Define the palettes for your theme using the Material Design palettes available in palette.scss
7777
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
78-
// hue. Available color palettes: https://www.google.com/design/spec/style/color.html
78+
// hue. Available color palettes: https://material.io/design/color/
7979
$candy-app-primary: mat-palette($mat-indigo);
8080
$candy-app-accent: mat-palette($mat-pink, A200, A100, A400);
8181

src/lib/checkbox/checkbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const _MatCheckboxMixinBase =
9393
* disabled. Note that all additional accessibility attributes are taken care of by the component,
9494
* so there is no need to provide them yourself. However, if you want to omit a label and still
9595
* have the checkbox be accessible, you may supply an [aria-label] input.
96-
* See: https://www.google.com/design/spec/components/selection-controls.html
96+
* See: https://material.io/design/components/selection-controls.html
9797
*/
9898
@Component({
9999
moduleId: module.id,

src/lib/core/gestures/gesture-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class GestureConfig extends HammerGestureConfig {
5151
* Builds Hammer instance manually to add custom recognizers that match the Material Design spec.
5252
*
5353
* Our gesture names come from the Material Design gestures spec:
54-
* https://www.google.com/design/spec/patterns/gestures.html#gestures-touch-mechanics
54+
* https://material.io/design/#gestures-touch-mechanics
5555
*
5656
* More information on default recognizers can be found in Hammer docs:
5757
* http://hammerjs.github.io/recognizer-pan/

src/lib/core/style/_elevation.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// A collection of mixins and CSS classes that can be used to apply elevation to a material
55
// element.
6-
// See: https://www.google.com/design/spec/what-is-material/elevation-shadows.html
6+
// See: https://material.io/design/environment/elevation.html
77
// Examples:
88
//
99
//

src/lib/core/theming/_palette.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Color palettes from the Material Design spec.
2-
// See https://www.google.com/design/spec/style/color.html
2+
// See https://material.io/design/color/
33
//
44
// Contrast colors are hard-coded because it is too difficult (probably impossible) to
55
// calculate them. These contrast colors are pulled from the public Material Design spec swatches.

src/lib/grid-list/grid-list.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
`mat-grid-list` is a two-dimensional list view that arranges cells into grid-based layout.
2-
See Material Design spec [here](https://www.google.com/design/spec/components/grid-lists.html).
1+
`mat-grid-list` is a two-dimensional list view that arranges cells into grid-based layout.
2+
See Material Design spec [here](https://material.io/design/components/image-lists.html).
33

44
<!-- example(grid-list-overview) -->
55

@@ -13,21 +13,21 @@ items.
1313

1414
The height of the rows in a grid list can be set via the `rowHeight` attribute. Row height for the
1515
list can be calculated in three ways:
16-
17-
1. **Fixed height**: The height can be in `px`, `em`, or `rem`. If no units are specified, `px`
16+
17+
1. **Fixed height**: The height can be in `px`, `em`, or `rem`. If no units are specified, `px`
1818
units are assumed (e.g. `100px`, `5em`, `250`).
19-
19+
2020
2. **Ratio**: This ratio is column-width:row-height, and must be passed in with a colon, not a
2121
decimal (e.g. `4:3`).
22-
22+
2323
3. **Fit**: Setting `rowHeight` to `fit` This mode automatically divides the available height by
24-
the number of rows. Please note the height of the grid-list or its container must be set.
24+
the number of rows. Please note the height of the grid-list or its container must be set.
2525

26-
If `rowHeight` is not specified, it defaults to a `1:1` ratio of width:height.
26+
If `rowHeight` is not specified, it defaults to a `1:1` ratio of width:height.
2727

2828
### Setting the gutter size
2929

30-
The gutter size can be set to any `px`, `em`, or `rem` value with the `gutterSize` property. If no
30+
The gutter size can be set to any `px`, `em`, or `rem` value with the `gutterSize` property. If no
3131
units are specified, `px` units are assumed. By default the gutter size is `1px`.
3232

3333
### Adding tiles that span multiple rows or columns

src/lib/schematics/shell/custom-theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ return `
1616
1717
// Define the palettes for your theme using the Material Design palettes available in palette.scss
1818
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
19-
// hue. Available color palettes: https://www.google.com/design/spec/style/color.html
19+
// hue. Available color palettes: https://material.io/design/color/
2020
$${name}-primary: mat-palette($mat-indigo);
2121
$${name}-accent: mat-palette($mat-pink, A200, A100, A400);
2222

src/lib/tabs/tab-group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const _MatTabGroupMixinBase = mixinColor(mixinDisableRipple(MatTabGroupBa
5959
/**
6060
* Material design tab-group component. Supports basic tab pairs (label + content) and includes
6161
* animated ink-bar, keyboard navigation, and screen reader.
62-
* See: https://www.google.com/design/spec/components/tabs.html
62+
* See: https://material.io/design/components/tabs.html
6363
*/
6464
@Component({
6565
moduleId: module.id,

0 commit comments

Comments
 (0)