Skip to content

docs: add temporary docs for cdk #5429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2017
Merged

Conversation

jelbourn
Copy link
Member

  • Update getting started guide WRT cdk
  • Add some temporary docs for cdk to be viewed on Github until we can integrate them into material.angular.io
  • Small change to docs generation to output ck docs (but not do anything with them yet)

@mmalerba or @kara please review

@jelbourn jelbourn added docs This issue is related to documentation pr: needs review labels Jun 30, 2017
@jelbourn jelbourn requested review from kara and mmalerba June 30, 2017 01:56
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 30, 2017
```

Note that your app's project structure may have a different relative location for your node_modules.
If you are not using the Angular CLI, you can include a prebuilt theme via a `<link>` element in
your `index.html`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add back the example for this? or are you afraid people won't read and will just add both?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no one path to node_modules that would work for everyone, and if we put anything there then people copy it and complain that it doesn't work.

@@ -0,0 +1,12 @@
### FocusTrap
The `cdkFocusTrap` directive traps Tab key focus within an element. This is intended to be used to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cdkTrapFocus

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


#### Example
```
<div class="my-inner-dialog-content" cdkFocusTrap>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cdkTrapFocus

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

The active item

#### `tabOut`
Observable that emits any time the TAB key is pressed, so components can react when focus is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: in the other files TAB is capitalized like this: Tab

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,21 @@
### BidiModule
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove leading space

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

### Using portals


### Portals in practice
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you mean to use same heading level as main heading?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@kara kara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just nits. Also, should we remove the merge-safe label? It has code changes to list-key-manager.

@@ -0,0 +1,12 @@
### FocusTrap
The `cdkFocusTrap` directive traps Tab key focus within an element. This is intended to be used to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Use <kbd> for Tab or lowercase it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,12 @@
### FocusTrap
The `cdkFocusTrap` directive traps Tab key focus within an element. This is intended to be used to
create components like [modal dialogs](https://www.w3.org/TR/wai-aria-practices-1.1/#dialog_modal).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For clarity, maybe we should say intended to be used to make components like modal dialogs more accessible.... Think it could be confusing to say it's used to create them, since it's not a building tool.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarified as "This is intended to be used to create accessible experience for components like..."

This directive is declared in `A11yModule`.

#### Example
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add html notation to get syntax highlighting?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

`aria-live` attribute on the announcer element, defaulting to 'polite'.

#### Examples
The LiveAnnouncer is injected in a component:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: in a component -> into a component

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member Author

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed comments

```

Note that your app's project structure may have a different relative location for your node_modules.
If you are not using the Angular CLI, you can include a prebuilt theme via a `<link>` element in
your `index.html`.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no one path to node_modules that would work for everyone, and if we put anything there then people copy it and complain that it doesn't work.

@@ -0,0 +1,12 @@
### FocusTrap
The `cdkFocusTrap` directive traps Tab key focus within an element. This is intended to be used to
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,12 @@
### FocusTrap
The `cdkFocusTrap` directive traps Tab key focus within an element. This is intended to be used to
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,12 @@
### FocusTrap
The `cdkFocusTrap` directive traps Tab key focus within an element. This is intended to be used to
create components like [modal dialogs](https://www.w3.org/TR/wai-aria-practices-1.1/#dialog_modal).
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarified as "This is intended to be used to create accessible experience for components like..."

This directive is declared in `A11yModule`.

#### Example
```
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


#### Example
```
<div class="my-inner-dialog-content" cdkFocusTrap>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

The active item

#### `tabOut`
Observable that emits any time the TAB key is pressed, so components can react when focus is
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

`aria-live` attribute on the announcer element, defaulting to 'polite'.

#### Examples
The LiveAnnouncer is injected in a component:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,21 @@
### BidiModule
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

### Using portals


### Portals in practice
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@mmalerba mmalerba merged commit 4562407 into angular:master Jul 5, 2017
devversion added a commit to devversion/material2 that referenced this pull request Jul 6, 2017
* With angular#5429 dgeni runs twice when running the `gulp docs` command. This is because the dgeni generate function has been added to the `dgeni/index.js` file.
mmalerba pushed a commit that referenced this pull request Jul 6, 2017
* With #5429 dgeni runs twice when running the `gulp docs` command. This is because the dgeni generate function has been added to the `dgeni/index.js` file.
amcdnl pushed a commit to amcdnl/material2 that referenced this pull request Jul 8, 2017
amcdnl pushed a commit to amcdnl/material2 that referenced this pull request Jul 8, 2017
* With angular#5429 dgeni runs twice when running the `gulp docs` command. This is because the dgeni generate function has been added to the `dgeni/index.js` file.
@jelbourn jelbourn deleted the cdk-docsss branch April 2, 2018 22:30
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has agreed to Google's Contributor License Agreement docs This issue is related to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants