Skip to content

refactor(material/toolbar): switch to tokens API #27479

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 20, 2023

Conversation

crisbeto
Copy link
Member

Reworks the toolbar to use the new 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 Jul 19, 2023
@crisbeto crisbeto requested a review from AndrewKushnir July 19, 2023 07:35
Reworks the toolbar to use the new tokens theming API.
@crisbeto crisbeto requested review from andrewseguin and removed request for AndrewKushnir July 19, 2023 19:14
crisbeto added a commit to crisbeto/tensorboard that referenced this pull request Jul 19, 2023
We're in the process of changing the Angular Material components to use CSS variables for theming. This involves moving some declarations from the theme to the component base styles which changes its specificity. One such change that breaks the Tensorboard screenshot tests is angular/components#27479.

The problem boils down to the fact that because the styles that override the form field color are in the base styles now _and_ the Tensorboard dark theme targets `body.dark-mode`, only in dark mode some of the select declarations aren't being overwritten anymore. This won't be a problem once Tensorboard moves away from the legacy Angular Material components, but for now this patch is necessary to ensure that it doesn't blend into the toolbar.

**Note:** these changes will require some minor updates to the existing internal screenshots. See cl/549228851 for more info.
@crisbeto crisbeto self-assigned this Jul 20, 2023
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jul 20, 2023
crisbeto added a commit to crisbeto/tensorboard that referenced this pull request Jul 20, 2023
We're in the process of changing the Angular Material components to use CSS variables for theming. This involves moving some declarations from the theme to the component base styles which changes its specificity. One such change that breaks the Tensorboard screenshot tests is angular/components#27479.

The problem boils down to the fact that because the styles that override the form field color are in the base styles now _and_ the Tensorboard dark theme targets `body.dark-mode`, only in dark mode some of the select declarations aren't being overwritten anymore. This won't be a problem once Tensorboard moves away from the legacy Angular Material components, but for now this patch is necessary to ensure that it doesn't blend into the toolbar.

**Note:** these changes will require some minor updates to the existing internal screenshots. See cl/549228851 for more info.
bmd3k pushed a commit to tensorflow/tensorboard that referenced this pull request Jul 20, 2023
We're in the process of changing the Angular Material components to use
CSS variables for theming. This involves moving some declarations from
the theme to the component base styles which changes its specificity.
One such change that breaks the Tensorboard screenshot tests is
angular/components#27479.

The problem boils down to the fact that because the styles that override
the form field color are in the base styles now _and_ the Tensorboard
dark theme targets `body.dark-mode`, only in dark mode some of the
select declarations aren't being overwritten anymore. This won't be a
problem once Tensorboard moves away from the legacy Angular Material
components, but for now this patch is necessary to ensure that it
doesn't blend into the toolbar.

**Note:** these changes will require some minor updates to the existing
internal screenshots. See cl/549228851 for more info.
@crisbeto crisbeto merged commit ffb2464 into angular:main Jul 20, 2023
crisbeto added a commit that referenced this pull request Jul 20, 2023
Reworks the toolbar to use the new tokens theming API.

(cherry picked from commit ffb2464)
AnthonyFr75 pushed a commit to AnthonyFr75/components that referenced this pull request Jul 31, 2023
Reworks the toolbar to use the new tokens theming API.
stephenrca pushed a commit to stephenrca/components that referenced this pull request Aug 2, 2023
Reworks the toolbar to use the new 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 20, 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.

2 participants