Skip to content

refactor(material/expansion): switch to tokens API #27390

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
Jul 10, 2023

Conversation

crisbeto
Copy link
Member

Reworks the expansion panel to use the tokens theming API.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release labels Jun 30, 2023
Reworks the expansion panel to use the tokens theming API.
@crisbeto crisbeto self-assigned this Jul 7, 2023
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jul 7, 2023
container-text-color: theming.get-color-from-palette($foreground, text),
actions-divider-color: theming.get-color-from-palette($foreground, divider),
header-hover-state-layer-color: theming.get-color-from-palette($background, hover),
header-focus-state-layer-color: theming.get-color-from-palette($background, hover),
Copy link
Contributor

Choose a reason for hiding this comment

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

ty for including state layer color. Focus states are important for accessibility.

[OPtional] If it's not a lot of work, I suggest adding state layer opacity. We don't need that now, but we will probably need it in the future. I'm okay with hard coding the state layer opacity as 0.12 in get-unthemable-tokens.

Copy link
Member Author

Choose a reason for hiding this comment

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

For that we'll have to put the state layer in a separate element (right now it's just a background-color). I'd rather we address it separately, because I'm trying to keep the DOM changes to a minimum since moving the declarations into the base styles already causes a bunch of broken targets.

@crisbeto crisbeto merged commit b6ce8cc into angular:main Jul 10, 2023
crisbeto added a commit that referenced this pull request Jul 10, 2023
Reworks the expansion panel to use the tokens theming API.

(cherry picked from commit b6ce8cc)
stephenrca pushed a commit to stephenrca/components that referenced this pull request Aug 2, 2023
Reworks the expansion panel to use the tokens theming API.
@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 Aug 10, 2023
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 P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants