igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Need SASS Function to set ripple for button.

Open ghost opened this issue 8 years ago • 4 comments

Need to be able to use igx-ripple-theme SASS function to set the ripple color on a button.

ghost avatar Jun 01 '18 16:06 ghost

For codegen purposes, we will apply a default IgxRipple to each button (without a color value). The Sketch libraries do not provide a visual or otherwise representation of the ripple, let alone an option to change its color.

This is, however, a nice to have feature, and should be considered to be added July-Aug. @SlavUI @simeonoff

SDinev avatar Jun 04 '18 12:06 SDinev

@simeonoff @SDinev This is not how code gen is set up. I use different logic for determining the color.

ghost avatar Jun 04 '18 12:06 ghost

@kdawg1406 In order for the ripple to work at all you have to set the igxRipple directive on the target element, in your case the element that also has the igxButton directive. This will apply the default ripple, you don't have to pass any value to the igxRipple directive for it to work.

Even if the theming engine allowed you to change the ripple color for the button theme via Sass, you would still have to set the igxRipple directive on the button.

That being said, I don't see why what @SDinev suggested wouldn't work.

simeonoff avatar Jun 04 '18 13:06 simeonoff

@simeonoff yes, know how the ripple works, thanks.

ghost avatar Jun 04 '18 13:06 ghost