Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(panel): use existing _md-panel-offscreen class instead of inline …
Browse files Browse the repository at this point in the history
…styles

- fix broken link to `setNonce()` docs in Theming Intro
- improve `setNonce()` documentation
- fix some invalid or inaccurate types, JSDoc, and comments
- improve type safety and IDE support by using `@types/angular` more
- fix dgeni complaining about dangling links
- fix typos

Fixes #11941
  • Loading branch information
Splaktar committed Jun 18, 2020
1 parent 1bd1a97 commit 609014f
Show file tree
Hide file tree
Showing 8 changed files with 126 additions and 106 deletions.
3 changes: 2 additions & 1 deletion docs/content/Theming/01_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ etc) you will need to either write CSS rules with custom selectors, or build a
custom version of the `angular-material.css` file using Sass and custom
variables.

> <b>Note:</b> The Material Theming system provides the <a ng-href="/api/service/$mdThemingProvider#mdthemingprovider-setnonce-noncevalue">
> <b>Note:</b> The Material Theming system provides the
> <a ng-href="api/service/$mdThemingProvider#mdthemingprovider-setnonce-noncevalue">
`$mdThemingProvider.setNonce()`</a> method to meet the requirements of a CSP-policy enabled application.
<img src="https://cloud.githubusercontent.com/assets/210413/4816236/bf7783dc-5edd-11e4-88ef-1f8b6e87e1d7.png" alt="color palette" style="max-width: 100%;">
Expand Down
4 changes: 2 additions & 2 deletions docs/content/performance/internet-explorer.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ present a performance burden for Internet Explorer. When switching or modifying
is not a requirement, the theming CSS can be exported to an external file which can be loaded statically.
The following steps should be performed:

* Configure your theme as explained [here](Theming/03_configuring_a_theme)
- This step is only required when a custom theme is used
* Configure your theme as explained <a ng-href="Theming/03_configuring_a_theme">here</a>
- If you are using a custom theme, don't forget this step
* Run the application in Chrome
* Open the Chrome DevTools
* Execute the following javascript - <i>This copies the theming CSS to the clipboard</i>
Expand Down
3 changes: 2 additions & 1 deletion src/components/datepicker/js/dateLocaleProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
* The `$mdDateLocaleProvider` is the provider that creates the `$mdDateLocale` service.
* This provider that allows the user to specify messages, formatters, and parsers for date
* internationalization. The `$mdDateLocale` service itself is consumed by AngularJS Material
* components that deal with dates (i.e. {@link api/directive/mdDatepicker mdDatepicker}).
* components that deal with dates
* (i.e. <a ng-href="api/directive/mdDatepicker">mdDatepicker</a>).
*
* @property {Array<string>} months Array of month names (in order).
* @property {Array<string>} shortMonths Array of abbreviated month names.
Expand Down
2 changes: 1 addition & 1 deletion src/components/datepicker/js/datepickerDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
* @description
* `<md-datepicker>` is a component used to select a single date.
* For information on how to configure internationalization for the date picker,
* see {@link api/service/$mdDateLocaleProvider $mdDateLocaleProvider}.
* see <a ng-href="api/service/$mdDateLocaleProvider">$mdDateLocaleProvider</a>.
*
* This component supports
* [ngMessages](https://docs.angularjs.org/api/ngMessages/directive/ngMessages).
Expand Down
Loading

0 comments on commit 609014f

Please sign in to comment.