refactor: change the toolkit directive prefixes and remove Md prefix from toolkit classes (#2258)

* refactor: change the toolkit directive prefixes and remove Md prefix from toolkit classes

Renames the the component toolkit to use the `cdk-` prefix, in addition to removing the `Md` prefix from classes associated with the toolkit.
The following CSS classes have been renamed as well:

* `md-global-overlay-wrapper` -> `cdk-global-overlay-wrapper`
* `md-overlay-container` -> `cdk-overlay-container`
* `md-overlay-pane` -> `cdk-overlay-pane`
* `md-overlay-backdrop-showing` -> `cdk-overlay-backdrop-showing`
* `md-overlay-dark-backdrop` -> `cdk-overlay-dark-backdrop`
* `md-overlay-backdrop` -> `cdk-overlay-backdrop`
* `md-visually-hidden` -> `cdk-visually-hidden`

* Re-export Md prefixed classes as deprecated

* Fix linter errors.

* Change the overlay variable prefixes to `cdk-` and remove dependency on theming.

* Add backwards compatible selectors for core directives
This commit is contained in:
Kristiyan Kostadinov
2016-12-20 04:08:35 +02:00
committed by Jeremy Elbourn
parent 1b2db73f81
commit 3cf25a035e
77 changed files with 268 additions and 249 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ describe('dialog', () => {
browser.actions()
// We need to move the cursor to the top left so
// the dialog doesn't receive the click accidentally.
.mouseMove(element(by.css('.md-overlay-backdrop')).getWebElement(), { x: 0, y: 0 })
.mouseMove(element(by.css('.cdk-overlay-backdrop')).getWebElement(), { x: 0, y: 0 })
.click()
.perform();
}
+1 -1
View File
@@ -14,7 +14,7 @@ export class MenuPage {
triggerTwo() { return element(by.id('trigger-two')); }
backdrop() { return element(by.css('.md-overlay-backdrop')); }
backdrop() { return element(by.css('.cdk-overlay-backdrop')); }
items(index: number) { return element.all(by.css('[md-menu-item]')).get(index); }