Skip to content

refactor: use lightweight token for CDK accordion #19676

Merged
devversion merged 2 commits intoangular:lightweight-token-optimizationsfrom
devversion:wip/light-weight-tokens-7
Jun 18, 2020
Merged

refactor: use lightweight token for CDK accordion #19676
devversion merged 2 commits intoangular:lightweight-token-optimizationsfrom
devversion:wip/light-weight-tokens-7

Conversation

@devversion
Copy link
Member

The CdkAccordionItem currently always brings in the CdkAccordion
class. This is not desired as an accordion item could be used
outside of a <cdk-accordion>. In those cases, we do not want
to retain the accordion class w/ metadata unnecessarily.

This also affects the MatExpansionPanel as it extends
from the CdkAccordionItem and therefore always brings in
the CdkAccordion list unnecessarily right now.

Related to #19576.

@devversion devversion 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 merge: preserve commits When the PR is merged, a rebase and merge should be performed labels Jun 17, 2020
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 17, 2020
@devversion devversion marked this pull request as ready for review June 17, 2020 16:22
@devversion devversion requested a review from jelbourn as a code owner June 17, 2020 16:22
@devversion devversion requested a review from a team June 17, 2020 16:22
Copy link
Member

@crisbeto crisbeto 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 added lgtm action: merge The PR is ready for merge by the caretaker labels Jun 17, 2020
@jelbourn
Copy link
Contributor

Want to change this to the new development branch?

@devversion devversion force-pushed the wip/light-weight-tokens-7 branch from aa49222 to 5db69b7 Compare June 18, 2020 10:53
@devversion devversion changed the base branch from master to lightweight-token-optimizations June 18, 2020 10:53
@googlebot

This comment has been minimized.

@googlebot googlebot added cla: no PR author must sign Google's Contributor License Agreement: https://opensource.google.com/docs/cla and removed cla: yes PR author has agreed to Google's Contributor License Agreement labels Jun 18, 2020
The `CdkAccordionItem` currently always brings in the `CdkAccordion`
class. This is not desired as an accordion item could be used
outside of a `<cdk-accordion>`. In those cases, we do not want
to retain the accordion class w/ metadata unnecessarily.

This also affects the `MatExpansionPanel` as it extends
from the `CdkAccordionItem` and therefore always brings in
the `CdkAccordion` list unnecessarily right now.

Related to angular#19576.
@devversion devversion force-pushed the wip/light-weight-tokens-7 branch from 5db69b7 to 617ce7d Compare June 18, 2020 10:54
@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes PR author has agreed to Google's Contributor License Agreement and removed cla: no PR author must sign Google's Contributor License Agreement: https://opensource.google.com/docs/cla labels Jun 18, 2020
@devversion devversion merged commit 13c1adf into angular:lightweight-token-optimizations Jun 18, 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 Jul 19, 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 merge: preserve commits When the PR is merged, a rebase and merge should be performed 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants