-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(css): identify md components for global md styling #7942
Conversation
@robertmesserle - please review |
65751af
to
ed8501d
Compare
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertmesserle - great catch.
Other than the one comment, LGTM. |
ed8501d
to
c6d3d36
Compare
@EladBezalel - please review. |
Why don't you use Other than that LGTM |
@EladBezalel - what is wrong with using |
@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
c6d3d36
to
890af4a
Compare
* 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
<a>
styles now support._md a:not(.md-button)
to style anchor tags used inside md containers