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

Issue: md-toolbar: unable to alter CSS on first row (auto-generated) #1376

Closed
Hugmungus opened this issue Sep 29, 2016 · 6 comments
Closed
Assignees
Labels
needs: discussion Further discussion with the team is needed before proceeding

Comments

@Hugmungus
Copy link

Bug, feature request, or proposal:

When using md-toolbar in Angular, it creates the first md-toolbar row automatically. Since there is no tag designation for this in the html, you are unable to alter the CSS for it (ie, change the height)

What is the expected behavior?

You should be able to alter the CSS on every piece of the md-toolbar

What is the current behavior?

What are the steps to reproduce?

Plunker: http://plnkr.co/edit/kP6MYoVdFQlECDX7T7Hs?p=preview

What is the use-case or motivation for changing an existing behavior?

A user will have limited control over the first md-toolbar-row while using this framework

Which versions of Angular, Material, OS, browsers are affected?

Angular2: 2.0.1
Material: 2.0.0-alpha.8-2
Chrome: 53.0.2785.116 m

Is there anything else we should know?

@PascalTemel
Copy link

PascalTemel commented Oct 4, 2016

@Hugmungus You can use the :host >>> md-toolbar-row selector. Here's a modified plunkr: http://plnkr.co/edit/IWq5nWl4ymU3rR3xKwrH?p=preview

Here's more information about the :host and deep selector if you're interested: https://angular.io/docs/ts/latest/guide/component-styles.html#!#special-selectors

@Hugmungus
Copy link
Author

Thanks @PascalTemel, that seems to do the trick.

@jelbourn
Copy link
Member

jelbourn commented Nov 4, 2016

@devversion we should discuss this a bit

@devversion
Copy link
Member

@jelbourn Sounds good. I already have some API ideas, how we could fix this issue and perhaps #1718 as well.

@devversion
Copy link
Member

I will close that issue in favor of #1718.

@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
@mmalerba mmalerba added the needs: discussion Further discussion with the team is needed before proceeding label Mar 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: discussion Further discussion with the team is needed before proceeding
Projects
None yet
Development

No branches or pull requests

5 participants