In XML the ripple effect is applied only to the background of a material button, whereas on Compose, it covers the entire button, also partially covering the text, when button is pressed.
I want to match ripple implementation as it is on XML, so that it does not apply a visual effect on the Buttons text, only background.
Any help is appreciated.
Below is a screenshot of a pressed Compose Button, when ripple (yellow) is covering the text.
Here is the XML version, where yellow ripple is applied only to the background of a Button.


Currently, this isn't possible by using the Button AFAIK. I would try to replace the button with a Box + a Text. Something like this: