bug: ion-select placeholder has wrong opacity value when labelPlacement="floating" #30402
Open
3 tasks done
Labels
type: bug
a confirmed bug report
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
ion-select
s withlabelPlacement="floating"
show their placeholders with full opacity, instead of the--ion-placeholder-opacity
(default 0.6 in md mode)(all selects are artifically styled as expanded in this example, but this issue is also visible when the placeholder is shown during normal use)
Expected Behavior
The placeholder should have the correct opacity (
var(--placeholder-opacity)
).Steps to Reproduce
Code Reproduction URL
https://stackblitz.com/edit/pxhxnc4c-a6vaud9w
Ionic Info
Ionic:
Ionic CLI : 7.2.1
Ionic Framework : @ionic/angular 8.5.7
@angular-devkit/build-angular : 19.2.11
@angular-devkit/schematics : 19.2.11
@angular/cli : 19.2.11
@ionic/angular-toolkit : 12.2.0
Utility:
cordova-res : not installed globally
native-run : not installed globally
System:
NodeJS : v20.19.1 (/usr/local/bin/node)
npm : 10.8.2
OS : Linux 5.0
Additional Information
The CSS rule to unhide the placeholder for floating labels sets the opacity to the fixed value
1
, instead ofvar(--placeholder-opacity)
.There is also a related issue visible in this example, where the placeholder overlaps the label when the input is focused, see #30401.
The text was updated successfully, but these errors were encountered: