You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jelbourn git escaping the html, i update with what i'm using to make this ripple showing like this. And i'll try to make the plunker work with rc5, after that i'll try to update with plunker.
md-button uses the ripple effect by default; you don't need to (and shouldn't) add a md-ripple attribute. You can set the disableRipple property to true to disable the ripple.
@dozingcat but if i don't use the attribute md-ripple i can't change the ripple color, i need to disable it and then use the atribute to set the color?
If you get the Plunker set up I can take a look. There's currently not a supported way to change the ripple color on md-buttons. Disabling the existing ripple and adding your own might be a workaround, but that's not the intended use.
+1
I'm experiencing exactly the same thing.
And I only have 2 things: toolbar and button
The button is inside the toolbar. Not sure if that matters or not.
But what definitely matters is that from the beginning, the ripple works as expected inside the button, but if you click on the button, then the ripple area become really big.
Reacted by Oleh Reznichenko, Mikhail Romanov, varadero, Domas Masiulis, AmundS, Eric Vandenberg and sanfra
I think the folowing error is something related, after upgranding alpha.7 and angular rc.5 : Can't bind to 'md-ripple-trigger' since it isn't a known property of 'div'. ("*ngIf="isRippleEnabled()" class="md-button-ripple" [class.md-button-ripple-round]="isRoundButton()" [ERROR ->][md-ripple-trigger]="getHostElement()" [md-ripple-color]="isRoundButton() ? 'rgba(255, 255, 255, 0.2)"): MdButton@0:180
Reacted by FoodBuster, Jared Youtsey, Inseok Lee and Oleh Reznichenko
Into my html, and it keeps stacking and never goes away.
Reacted by John DeLong, Anton Moiseev, Fernando Gomes, Chris Carr, Cody Lundquist, Alexander Ciesielski, Mikhail Romanov, easedev, Janak Bhatta, varadero and 4 more
@dozingcatHere is a plunker with RC.5 and alpha.7 to demonstrate the issue. Just press the button a couple of times and you'll see the vertical scrollbar appears. As said by @colinfang above, every time you press the button those divs stack up.
You should load the css files with a <link> element rather than styleUrls in a component.
alpha.7-4 isn't all the way up to master; it only includes very minor changes that won't affect most users (in this case fixing an issue with ngc running on the ripple).
@jelbourn If you get the chance, please state briefly why you chose to put the styles in a separate CSS that we have to link to, rather than stay consistent with Angular's isolated scopes approach that keeps styles within the block scope of their component. Is this just temporary?
There are some styles that are used between multiple components (such as ripples), so including them directly in the component css instead of globally would lead to a pretty sizable chunk of duplicate payload.
Currently (angular 2.0, material 2.0.0-alpha.9) the solution is to include theme in styles.css like:
/* You can add global styles to this file, and also import other style files */
@import '../node_modules/@angular/material/core/theming/prebuilt/indigo-pink.css';
Activity
jelbourn commentedon Aug 9, 2016
@BenevidesLecontes can you reproduce the issue in a pluker or similar? I don't follow on your steps to reproduce.
BenevidesLecontes commentedon Aug 9, 2016
@jelbourn git escaping the html, i update with what i'm using to make this ripple showing like this. And i'll try to make the plunker work with rc5, after that i'll try to update with plunker.
jelbourn commentedon Aug 9, 2016
cc @dozingcat
dozingcat commentedon Aug 9, 2016
md-button uses the ripple effect by default; you don't need to (and shouldn't) add a md-ripple attribute. You can set the disableRipple property to true to disable the ripple.
BenevidesLecontes commentedon Aug 9, 2016
@dozingcat but if i don't use the attribute md-ripple i can't change the ripple color, i need to disable it and then use the atribute to set the color?
BenevidesLecontes commentedon Aug 9, 2016
@jelbourn @dozingcat also md-ripple is creating scroll on my page after several clicks. I think this the cause.

dozingcat commentedon Aug 9, 2016
If you get the Plunker set up I can take a look. There's currently not a supported way to change the ripple color on md-buttons. Disabling the existing ripple and adding your own might be a workaround, but that's not the intended use.
BenevidesLecontes commentedon Aug 9, 2016
@dozingcat any plunker with material alpha 7 and rc5 to fork? I Forked from here, but i can't make it work.
sunshineo commentedon Aug 10, 2016
+1
I'm experiencing exactly the same thing.
And I only have 2 things: toolbar and button
The button is inside the toolbar. Not sure if that matters or not.
But what definitely matters is that from the beginning, the ripple works as expected inside the button, but if you click on the button, then the ripple area become really big.
fernandogomesdf commentedon Aug 10, 2016
I think the folowing error is something related, after upgranding alpha.7 and angular rc.5 : Can't bind to 'md-ripple-trigger' since it isn't a known property of 'div'. ("*ngIf="isRippleEnabled()" class="md-button-ripple" [class.md-button-ripple-round]="isRoundButton()" [ERROR ->][md-ripple-trigger]="getHostElement()" [md-ripple-color]="isRoundButton() ? 'rgba(255, 255, 255, 0.2)"): MdButton@0:180
colinfang commentedon Aug 10, 2016
@fernandogomesdf I encountered this error as well, but it disappeared as soon as I import
MdButtonModuleinstead of using directives. See #973colinfang commentedon Aug 10, 2016
I have got the same problem.
Each click of the bottom inserts a
Into my html, and it keeps stacking and never goes away.
ivoviz commentedon Aug 10, 2016
@dozingcat Here is a plunker with RC.5 and alpha.7 to demonstrate the issue. Just press the button a couple of times and you'll see the vertical scrollbar appears. As said by @colinfang above, every time you press the button those divs stack up.
BenevidesLecontes commentedon Aug 10, 2016
@dozingcat @ivoviz and also notice in this plunker, no ripple effect after all.
dozingcat commentedon Aug 10, 2016
The problem may be that the ripples depend on styles in core.css, which needs to be included in the page (for example https://github.com/angular/material2/blob/master/src/demo-app/index.html#L17 in the demo app). @jelbourn was there going to be a way to automatically include this?
11 remaining items
jelbourn commentedon Aug 18, 2016
You should load the css files with a
<link>element rather thanstyleUrlsin a component.alpha.7-4 isn't all the way up to master; it only includes very minor changes that won't affect most users (in this case fixing an issue with
ngcrunning on the ripple).xhite commentedon Aug 18, 2016
@jelbourn thanks it works when loading globally with
<link>workaround for angular/components#972
mentatxx commentedon Aug 20, 2016
Also you can just disable ripple for a while
RoxKilly commentedon Aug 26, 2016
@jelbourn If you get the chance, please state briefly why you chose to put the styles in a separate CSS that we have to
linkto, rather than stay consistent with Angular's isolated scopes approach that keeps styles within the block scope of their component. Is this just temporary?jelbourn commentedon Aug 30, 2016
There are some styles that are used between multiple components (such as ripples), so including them directly in the component css instead of globally would lead to a pretty sizable chunk of duplicate payload.
HIPCMS-424 deleted unused directives imports
jelbourn commentedon Aug 31, 2016
Closing into #1139
mgpeng commentedon Sep 2, 2016
Using rc5 and m2 alpha7-4, md-menu html like this:
showed like this after rendering:
include
<link rel="stylesheet" href="vendor/@angular2-material/core/style/core.css" />in index.html nothing changed.Feature/upgrade RC6 (#37)
KKrisu commentedon Oct 2, 2016
Currently (angular 2.0, material 2.0.0-alpha.9) the solution is to include theme in styles.css like:
alexlevy0 commentedon Oct 13, 2016
I'm also with angular 2.0, material 2.0.0-alpha.9 a solution is to create theme doc and link to your project.
We need to @include md-core();
angular-automatic-lock-bot commentedon Sep 5, 2019
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.