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
Impossible to change the opacity of an ion-select placeholder #17446
Comments
try this
|
Thanks for the reply, but unfortunately It didn't work. |
I also have this problem. In Chrome I can see the shadow styles as an inline style tag that says .select-placeholder{opacity: .33}; |
same problem. Any solution to solve ? |
I ended up using css pseudo content instead of placeholders as a temporary workaround. select:before{content:"whatever the placeholder would have been"} |
i have the same problem |
an unorthodox method but it was useful for me to change a js file after compiling: select-placeholder {color: currentColor; opacity: 0.33} for select-placeholder {color: currentColor; opacity: 1} I'm not sure but maybe the file in question could vary. Salu2. |
workaround:
|
this issue is still happening |
I have this issue as well. ion-select placeholder opacity is .33 whereas all other placeholders are .5. Why is this so difficult to fix? |
Same issue. Kinda a make-or-break problem. These components don't seem very customizable in general. Applying any kind of custom styling feels like rocket science. |
I ended up using @pbeltrand's hack, which doesn't use placeholder (since it is styled wrong and not modifyable). Uses label instead and hides when a selection is made:
now i am on to my next hack to try to figure out how make ion-menu-button slightly larger; because it is also not changeable... perhaps we need to wait until Ionic 5 for the team to realize how silly it is to try to guess at how everyone wants their app to look.. :( |
i got the same issue :(. .sc-ion-input-md-h { |
Thanks for the issue. This has been resolved via #19893 and will be available in an upcoming release of Ionic Framework. |
@liamdebeasi Hi, Is there any way to test the change now? I tried |
@pjc0247 This feature will be released in the next major version of Ionic Framework (v5.0). We are rolling out betas, and this feature was released as part of beta 1. See the changelog for more info: https://github.com/ionic-team/ionic/blob/master/CHANGELOG.md There are also instructions here for how to upgrade to v5 if you would like to start testing the betas: https://github.com/ionic-team/ionic/blob/master/CHANGELOG.md#500-beta0-2019-10-15 |
@liamdebeasi So, this will not be applied to v4? |
Correct, this feature will not be in v4. |
i think NObody wants to migrate the entire project for a single CSS property. You may think this is a feature update, but actual users think this is a bug. |
For the purposes of writing changelogs and following semantic versioning, we consider anything that makes additions to the API to be a feature. In this case, a CSS Variable was added to the API. Most developers will be able to upgrade to v5 with minimal changes to their application. The upgrade path from v4 to v5 is much simpler and faster than the upgrade path from v3 to v4. In some cases, developers may not have to change anything in their application depending on the complexity and scope of their app. For more information about some of the breaking changes in v5, please see the changelog for the v5 betas: Breaking changes in beta 1: https://github.com/ionic-team/ionic/blob/master/CHANGELOG.md#breaking-changes |
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. |
Bug Report
Ionic version:
[x] 4.x
Current behavior:
There is no CSS property that makes it possible to change the opacity of the placeholder of an
ion-select
Expected behavior:
In the
ion-input
, there is the--placeholder-opacity
property that controls the opacity of anion-input
. It would be helpful to have the same property in theion-select
component.Steps to reproduce:
Related code:
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: