Skip to content

refactor(themes): add styling support for datetime inputs#2223

Open
simeonoff wants to merge 1 commit into
masterfrom
simeonoff/input-datetime-styles
Open

refactor(themes): add styling support for datetime inputs#2223
simeonoff wants to merge 1 commit into
masterfrom
simeonoff/input-datetime-styles

Conversation

@simeonoff
Copy link
Copy Markdown
Collaborator

Description

This PR adds styling support for date, time, datetime-local, week, and month input types.

Type of Change

  • New feature (non-breaking change that adds functionality)
  • Refactoring (code improvements without functional changes)

Related Issues

Related to IgniteUI/igniteui-angular#17270

  • My code follows the project's coding standards
  • I have tested my changes locally

@simeonoff simeonoff requested a review from adrianptrv May 12, 2026 07:18
Copilot AI review requested due to automatic review settings May 12, 2026 07:18
@simeonoff simeonoff changed the title refactor(input): add styling support for datetime inputs refactor(themes): add styling support for datetime inputs May 12, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the igc-input theming layer to better support native date, time, datetime-local, week, and month inputs by ensuring their internal UI and floating-label behaviors can be styled consistently in both light and dark modes.

Changes:

  • Split input “shared” theme overrides into distinct light/dark variants and wire them into the theme registry.
  • Extend Material shared input styling selectors to account for datetime-like input types.
  • Add cross-theme tweaks for native datetime text rendering and ensure correct UA control styling via color-scheme.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/components/input/themes/themes.ts Uses separate light/dark shared style bundles for input themes.
src/components/input/themes/shared/input.material.scss Adds Material theme selector logic for datetime-like input types.
src/components/input/themes/shared/input.common.scss Tweaks shared styling to better theme native datetime edit text.
src/components/input/themes/light/input.shared.scss Sets color-scheme: light for native control rendering.
src/components/input/themes/dark/input.shared.scss Introduces dark shared styles and sets color-scheme: dark.

input[type='week'],
input[type='month']
) + [part='notch'] [part='label'],
input:has(:not(:placeholder-shown)) + [part='notch'] [part='label'] {
Comment on lines +510 to +513
:host(:not(
[aria-haspopup='dialog'],
[role='combobox']
)[outlined][readonly]:focus-within) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants