Skip to content

Where is <md-content> defined? #921

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

Closed
autopulous opened this issue Jul 26, 2016 · 5 comments
Closed

Where is <md-content> defined? #921

autopulous opened this issue Jul 26, 2016 · 5 comments

Comments

@autopulous
Copy link

Bug, feature request, or proposal:

Question, that may or may not result in a change...

What is the expected behavior?

md-content being recognized by my IDE JetBrains IDEA 2016.2

What is the current behavior?

JetBrains IDEA 2016.2 reports

Selector matches unknown element md-content

when I reference md-content in style sheets (.scss)

What are the steps to reproduce?

Add a md-content reference in a style sheet

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

Presumably this is just a nit

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

2.0.0-alpha.6-2

Is there anything else we should know?

I searched the repository for the location within the material code for a definition of the md-content selector and could not find one...

@blaugold
Copy link

blaugold commented Jul 26, 2016

It is used in sidenav.scss and sidenav-transitions.scss, but I can confirm that in IntelliJ Idea it is not recognised as a selector. Using Go To > Declaration (cmd + b on osx) next to something like md-sidenav, which IntelliJ does recognise brings you to the component declaration. So I suspect the Angular plugin for JetBrains IDEs is aware of selector metadata but not the compiled css in the stylesmetadata.

@jelbourn
Copy link
Member

This is not related to material; WebStorm / IJ don't recognize custom elements by default.

@autopulous
Copy link
Author

@jelbourn - respectfully... IDEA 2016.2 recognizes many of the md- directives... when these are defined/declare within the material packages - for instance md-toolbar is recognized because md-toolbar is declared as a selector in the toolbar.js file - it would seem to me that since md-toolbar is recognized and md-toolbar is declared within the "@angular2-material/toolbar": "2.0.0-alpha.6-2" package it seem to follow that there may be a missing declaration for the md-content selector...

@VivekWisdom
Copy link

In node_modules/@angular2-material I don't see md-content.

Again in Wiki also it's not referenced. Maybe md-content is not included at all in material2.

@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

4 participants