Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Conversation

ThomasBurleson
Copy link
Contributor

  • add private classname "._md" to all md component containers to all global md-only stylings
  • button-theme <a> styles now support ._md a:not(.md-button) to style anchor tags used inside md containers

@ThomasBurleson
Copy link
Contributor Author

@robertmesserle - please review

@ThomasBurleson ThomasBurleson force-pushed the wip/global_md_indicator branch from 65751af to ed8501d Compare April 7, 2016 23:49
@@ -104,6 +104,8 @@ function GridListDirective($interpolate, $mdConstant, $mdGridLayout, $mdMedia) {
};

function postLink(scope, element, attrs, ctrl) {
attr.$addClass('_md'); // private md component indicator for styling
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be attrs based on the previous line?

Copy link
Contributor

Choose a reason for hiding this comment

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

or more accurately: shouldn't the previous line be attr?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@robertmesserle - great catch.

@robertmesserle
Copy link
Contributor

Other than the one comment, LGTM.

@ThomasBurleson ThomasBurleson force-pushed the wip/global_md_indicator branch from ed8501d to c6d3d36 Compare April 8, 2016 04:31
@ThomasBurleson
Copy link
Contributor Author

@EladBezalel - please review.

@ThomasBurleson ThomasBurleson added the needs: review This PR is waiting on review from the team label Apr 8, 2016
@ThomasBurleson ThomasBurleson self-assigned this Apr 8, 2016
@ThomasBurleson ThomasBurleson added this to the 1.1.0 milestone Apr 8, 2016
@EladBezalel
Copy link
Member

Why don't you use element.addClass('_md')?

Other than that LGTM

@ThomasBurleson
Copy link
Contributor Author

@EladBezalel - what is wrong with using attr.$addClass( ) ?

@EladBezalel
Copy link
Member

@ThomasBurleson nothing wrong, just not natural imo..

* add private classname "._md" to all md component containers to all global md-only stylings
* button-theme `<a>` styles now support `._md a:not(.md-button)` to style anchor tags used inside md containers
* add unit tests to check for presence of `._md` classname
@ThomasBurleson ThomasBurleson force-pushed the wip/global_md_indicator branch from c6d3d36 to 890af4a Compare April 8, 2016 16:27
ilovett pushed a commit to ilovett/material that referenced this pull request Apr 22, 2016
* add private classname "._md" to all md component containers to all global md-only stylings
* button-theme `<a>` styles now support `._md a:not(.md-button)` to style anchor tags used inside md containers
* add unit tests to check for presence of `._md` classname

Closes angular#7942
@ThomasBurleson ThomasBurleson deleted the wip/global_md_indicator branch March 7, 2017 13:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants