-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Conversation
``` | ||
|
||
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`. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
src/cdk/a11y/focus-trap.md
Outdated
@@ -0,0 +1,12 @@ | |||
### FocusTrap | |||
The `cdkFocusTrap` directive traps Tab key focus within an element. This is intended to be used to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cdkTrapFocus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/cdk/a11y/focus-trap.md
Outdated
|
||
#### Example | ||
``` | ||
<div class="my-inner-dialog-content" cdkFocusTrap> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cdkTrapFocus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/cdk/a11y/list-key-manager.md
Outdated
The active item | ||
|
||
#### `tabOut` | ||
Observable that emits any time the TAB key is pressed, so components can react when focus is |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/cdk/bidi/bidi.md
Outdated
@@ -0,0 +1,21 @@ | |||
### BidiModule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove leading space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/cdk/portal/portal.md
Outdated
### Using portals | ||
|
||
|
||
### Portals in practice |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this 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.
src/cdk/a11y/focus-trap.md
Outdated
@@ -0,0 +1,12 @@ | |||
### FocusTrap | |||
The `cdkFocusTrap` directive traps Tab key focus within an element. This is intended to be used to |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/cdk/a11y/focus-trap.md
Outdated
@@ -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). |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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..."
src/cdk/a11y/focus-trap.md
Outdated
This directive is declared in `A11yModule`. | ||
|
||
#### Example | ||
``` |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/cdk/a11y/live-announcer.md
Outdated
`aria-live` attribute on the announcer element, defaulting to 'polite'. | ||
|
||
#### Examples | ||
The LiveAnnouncer is injected in a component: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this 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`. |
There was a problem hiding this comment.
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.
src/cdk/a11y/focus-trap.md
Outdated
@@ -0,0 +1,12 @@ | |||
### FocusTrap | |||
The `cdkFocusTrap` directive traps Tab key focus within an element. This is intended to be used to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/cdk/a11y/focus-trap.md
Outdated
@@ -0,0 +1,12 @@ | |||
### FocusTrap | |||
The `cdkFocusTrap` directive traps Tab key focus within an element. This is intended to be used to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/cdk/a11y/focus-trap.md
Outdated
@@ -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). |
There was a problem hiding this comment.
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..."
src/cdk/a11y/focus-trap.md
Outdated
This directive is declared in `A11yModule`. | ||
|
||
#### Example | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/cdk/a11y/focus-trap.md
Outdated
|
||
#### Example | ||
``` | ||
<div class="my-inner-dialog-content" cdkFocusTrap> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/cdk/a11y/list-key-manager.md
Outdated
The active item | ||
|
||
#### `tabOut` | ||
Observable that emits any time the TAB key is pressed, so components can react when focus is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/cdk/a11y/live-announcer.md
Outdated
`aria-live` attribute on the announcer element, defaulting to 'polite'. | ||
|
||
#### Examples | ||
The LiveAnnouncer is injected in a component: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/cdk/bidi/bidi.md
Outdated
@@ -0,0 +1,21 @@ | |||
### BidiModule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/cdk/portal/portal.md
Outdated
### Using portals | ||
|
||
|
||
### Portals in practice |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
* 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.
* 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.
* 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.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
@mmalerba or @kara please review