I have seen similar topics on this issue, but I am struggling to find a solution that works for my specific situation. Despite trying the available information, I haven't been successful so far.
My current challenge is changing the background color of a Text button when the mouse hovers over it.
If I attempt to modify the backgroundColor style directly in the button's inline code, it ends up altering the entire area instead of just the intended part. It seems there is no way to add a :hover functionality inline (I am using TS, which displays an error even though the code compiles without any effect).
When using a SCSS module, I can once again change the entire background color. However, introducing the :hover functionality on the same property only seems to affect the text portion (refer to the screenshot provided).
Despite attempting to target the ant-btn-text more specifically, I have not achieved any success.
Does anyone have any suggestions? I would prefer to avoid creating a state variable for this if possible.
https://i.sstatic.net/N1JPP.png
Edit: added a section of code and CSS as requested in the comment https://i.sstatic.net/3CWFh.png