Skip to content

refactor(material/core): remove underscores from symbols consumed in other files #20906

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
Nov 6, 2020

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Oct 28, 2020

In the new Sass module system a symbol prefixed with an underscore means that it's private and it can't be used in other files. These changes refactor all of our existing usages to remove the underscore. Some of the symbols have been moved into private directories to make it more obvious that they shouldn't be depended upon.

Note: setting as a P2, because it's blocking work on the Sass module migration.

@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 28, 2020
@crisbeto crisbeto force-pushed the private-sass-refactor branch 3 times, most recently from a0d758d to 8871c76 Compare October 28, 2020 19:20
@crisbeto crisbeto changed the title refactor(core): remove undescores from symbols consumed in other files refactor(material/core): remove undescores from symbols consumed in other files Oct 28, 2020
@crisbeto crisbeto added P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release labels Oct 28, 2020
@crisbeto crisbeto marked this pull request as ready for review October 28, 2020 19:33
@crisbeto crisbeto force-pushed the private-sass-refactor branch from 8871c76 to 368ab08 Compare October 28, 2020 20:12
@crisbeto crisbeto changed the title refactor(material/core): remove undescores from symbols consumed in other files refactor(material/core): remove undescored from symbols consumed in other files Oct 28, 2020
@crisbeto crisbeto force-pushed the private-sass-refactor branch from 368ab08 to f7d22f4 Compare October 28, 2020 20:13
@crisbeto crisbeto changed the title refactor(material/core): remove undescored from symbols consumed in other files refactor(material/core): remove underscored from symbols consumed in other files Oct 28, 2020
@crisbeto crisbeto changed the title refactor(material/core): remove underscored from symbols consumed in other files refactor(material/core): remove underscores from symbols consumed in other files Oct 28, 2020
@crisbeto crisbeto force-pushed the private-sass-refactor branch from f7d22f4 to 160ac77 Compare October 28, 2020 20:20
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

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

LGTM

@crisbeto crisbeto force-pushed the private-sass-refactor branch from 160ac77 to 278a2a8 Compare November 4, 2020 17:43
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Nov 4, 2020
…other files

In the new Sass module system a symbol prefixed with an underscore means that it's
private and it can't be used in other files. These changes refactor all of our existing
usages to remove the underscore. Some of the symbols have been moved into
`private` directories to make it more obvious that they shouldn't be depended upon.
@crisbeto crisbeto force-pushed the private-sass-refactor branch from 278a2a8 to 4b07882 Compare November 5, 2020 17:17
@annieyw annieyw added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Nov 6, 2020
@annieyw annieyw merged commit c052ab3 into angular:master Nov 6, 2020
@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 Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants