droc101 · GitHub

@droc101

…when focused
modify placeholder visibility (opacity) css condition to show the placeholder if the select is focused *and* has no value, as opposed to only being focused
closes ionic-team#30401

@droc101

@droc101

@vercel

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ionic-framework Ready Ready Preview, Comment Jul 27, 2026 10:45pm

Request Review

@vercel

thetaPC

*/
:host(.select-expanded.select-label-placement-floating) .native-wrapper .select-placeholder,
:host(.has-focus.select-label-placement-floating) .native-wrapper .select-placeholder,
:host(.has-focus.select-label-placement-floating):not(.has-value) .native-wrapper .select-placeholder,

@droc101

@droc101

@droc101

@vercel

@droc101

@vercel

thetaPC

Comment on lines +211 to +213

await select.click();
const cancel = page.locator('button.alert-button-role-cancel');
await cancel.click();
await expect(select).toHaveScreenshot(screenshot(`select-label-focus-floating-no-value-placeholder`));
const select = page.locator('ion-select');
await expect(select).toHaveScreenshot(screenshot(`select-label-floating-no-value-placeholder`));
});
test('label should appear on top of the select when it is focused, has a placeholder, and no value', async ({

@droc101

@droc101

@vercel

@thetaPC

Read the original on github.com ↗