-
Notifications
You must be signed in to change notification settings - Fork 13.4k
fix(Button): default opacity for disabled clear buttons #18560
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
fix(Button): default opacity for disabled clear buttons #18560
Conversation
Thank you for the PR! Unfortunately this fix would not allow for users to override the disabled opacity because it would not be inherited in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my previous comment. 🙂
ah okay. i only checked the changes, which introduced the problem. I am on it |
@brandyscarney i think the it is only used in the md variables.scss where it is defined |
Do not override button clear opacity to allow using css-variable `--opacity` for disabled state
@brandyscarney is there a trick to get
|
@KillerCodeMonkey I am not sure, I only ever use |
@KillerCodeMonkey Oh you may need to run a fresh |
But i Leave IT there If Somebody needs the Default value from the Framework
(which could possibly Change)
There are other unused vars in the buttons vars scss.
PS: i Made a freshinstall an installed sass AS global dep.
Brandy Carney <notifications@github.com> schrieb am Fr., 21. Juni 2019,
17:11:
… @KillerCodeMonkey <https://github.com/KillerCodeMonkey> I am not sure, I
only ever use npm start. Yes it looks like the scss var is obsolete.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18560>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARI4YARSYK6FCTSXT3EMI3P3TVRFANCNFSM4HYWERPA>
.
|
Will this be merged or fixed soon? I thought you have screenshot diff tests to catch these kind of regressions? BTW a workaround is to use |
@brandyscarney it should be fixed. i tested it and everything runs with success :). for removing obsolete sass vars i would create a nother PR if your team would appreciate it. |
We do, but the disabled button in the clear test is towards the bottom of the page and the way our screenshot tool is set up it is being cut off by the browser height. We need to move the button to a new test where it will be in the visible screenshot or increase the browser height, but then we run the risk of this happening again: https://screenshot.ionicframework.com/data/tests/34dfc3c/src/components/button/test/clear/ |
I see. Couldn't you utilize sth like Anyway, not really related to this PR (: This will be fixed with the 4.6 release, right? |
Clear buttons to not get disabled state, when attribute disabled is set.
as you can see the clear buttons do not have the default disabled opacity set ;).
In ionic v4.4:
#18509 (comment)
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Since 4.5.0 the
opacity: .5;
does not work for clear buttons.Issue Number:
introduced with PR #18509
#18555
What is the new behavior?
opacity is set to the default
opacity: .5;
ion-buttons with thefill="clear"
and disabled attributes.Does this introduce a breaking change?
Other information