Skip to content
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

Turn off view encapsulation for md-toolbar-row #5087

Closed
yogeshgadge opened this issue Jun 12, 2017 · 5 comments
Closed

Turn off view encapsulation for md-toolbar-row #5087

yogeshgadge opened this issue Jun 12, 2017 · 5 comments

Comments

@yogeshgadge
Copy link

Same as #676 but for md-toolbar-row.

The first md-toolbar-row gets created by the md-toolbar and with default ViewEncapsulation.Emulated the md-toolbar-row can't be styled. However #1718 only solves being able to add attributes. It does not solve styling issues.

For example how does one change the height for 64px to 50px on md-toolbar-row ?

@willshowell
Copy link
Contributor

Here is one option

http://plnkr.co/edit/ph2RH89NMWQuJ0ifwCHE?p=preview

@jelbourn
Copy link
Member

@Directives don't have ViewEncapsulation

@yogeshgadge
Copy link
Author

@willshowell Nice trick. Mine doe snot work and wondering if app.component must have inlined styles vs stylesUrl ?

@willshowell
Copy link
Contributor

@yogeshgadge that won't make a difference. Just to be sure, you saw the global styles that I added in index.html?

To achieve your goal, you can do one of the following:

  1. Use global styles like in the linked plunk
  2. Turn off ViewEncapsulation of your app.component
  3. Use the /deep/ selector in your app.component's styles

@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 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants