refactor(input-group): add styling support for more input types#17270
refactor(input-group): add styling support for more input types#17270simeonoff wants to merge 8 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds styling support in igx-input-group for native date/time-like input types to prevent label/placeholder overlap (Issue #17156), and updates the showcase to demonstrate the newly supported types.
Changes:
- Updated the Input Group showcase sample to include
date,time,datetime-local,month, andweeknative input types (and adjusted defaults). - Extended Material/Bootstrap input-group styling selectors to account for date/time-like inputs (label/notch behavior, disabled text coloring).
- Introduced
color-schemepropagation based on theme variant to better align native control rendering with theme mode.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/app/input-group-showcase/input-group-showcase.sample.ts | Expands the demo’s selectable native input types and adjusts default selections. |
| projects/igniteui-angular/core/src/core/styles/components/input/_input-group-theme.scss | Adds styling rules for date/time-like native inputs to avoid label overlap and improve visual consistency. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
The previous issues are fixed. The only remaining thing I see is that when the input fields are empty and hovered, the text color becomes darker. I noticed that it uses the IgniteuiDevDemos.9.mp4When the input is filled and hovered, it works correctly: idle => Also, when the input is empty and focused, Angular makes the entire text darker, while in Web Components only the focused part of the text becomes darker and the rest remains with the idle color. I’m not sure which behavior is the correct one. IgniteuiDevDemos.10.mp4 |

Closes #17156
Description
This PR adds minimal styling support for input types
date,time,datetime-local,month, andweekin the context of theigx-input-groupcomponent.Type of Change (check all that apply):
Component(s) / Area(s) Affected:
The only affected component is the Input Group.
How Has This Been Tested?
Checklist:
feature/README.MDupdates for the feature docsREADME.MDCHANGELOG.MDupdates for newly added functionalityng updatemigrations for the breaking changes (migrations guidelines)