bug: ion-select placeholder overlaps label when select has focus and labelPlacement="floating" #30401
Open
3 tasks done
Labels
type: bug
a confirmed bug report
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
When an ion-select with labelPlacement="floating" is focused, the placeholder is shown but the label remains in non-floating position, causing an overlap:

(in this screenshot
has-focus
is manually set on all selects at once for illustrative purposes, in normal use only one select can be focused at once)Expected Behavior
One of these two options:
The placeholder is not shown

The placeholder is shown and the label floats

Steps to Reproduce
ion-select
elementsCode Reproduction URL
https://stackblitz.com/edit/pxhxnc4c-tltkbxwu
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 rule setting the placeholder opacity to

1
when the select.has-focus
overrides the rule hiding the placeholder when it is:not(.label-floating)
Another related bug is that the opacity gets overriden with
1
instead ofvar(--placeholder-opacity)
, causing the placeholder to appear black instead of gray. See #30402.The text was updated successfully, but these errors were encountered: