-
Notifications
You must be signed in to change notification settings - Fork 13.5k
bug: --background-hover being overridden on ion-button fill="clear" and color #23441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?
|
Thanks for the issue. This has been resolved via #23442, and a fix will be available in an upcoming release of Ionic Framework. One change I made to the PR is that you should not be able to override the background color with variables when using the |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Ionic version:
"@ionic/core": "^5.6.9"
"@ionic/angular": "^5.6.9"
"@angular/core": "~10.0.0"
Current behavior:
<ion-button fill="clear" style="--background-hover: transparent; --background-hover-opacity: 0;">
Hovered ion-buttons still show a background.
Chrome inspector shows:

Which digging through the node_modules:
node_modules/@ionic/core/dist/collection/components/button/button.md.css
Line 417:
Which looks to be a compiled output from here: https://github.com/ionic-team/ionic-framework/blob/master/core/src/components/button/button.md.scss
Expected behavior:
On a desktop application (untested on mobile):
The above styles would expect the button to not have a background when hovered.
The text was updated successfully, but these errors were encountered: