Skip to content

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

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 5 commits into from
Dec 20, 2016

Conversation

crisbeto
Copy link
Member

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

@crisbeto crisbeto requested a review from jelbourn December 16, 2016 23:48
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 16, 2016
@crisbeto
Copy link
Member Author

@jelbourn I still have some doubts:

  1. Should I move over the md-line and md-ripple? They seem a bit Material-specific.
  2. Should I rename the SASS variables that are associated with the cdk styles?

@jelbourn
Copy link
Member

@crisbeto md-line and md-ripple are material specific so they stay the same. It's only things that are totally decoupled from Material Design that get cdk.

It would be good to rename the associated scss variables, but that's not as important.

@crisbeto
Copy link
Member Author

Renamed the SASS variables and removed the overlay's dependency on theming @jelbourn. This should be good to go.

crisbeto and others added 4 commits December 19, 2016 12:43
…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`
@jelbourn jelbourn merged commit 3cf25a0 into angular:master Dec 20, 2016
@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 6, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants