Skip to content

feat(input-group): change default type from 'line' to 'box'#17340

Merged
kdinev merged 6 commits into
masterfrom
copilot/change-default-input-type-box
Jun 22, 2026
Merged

feat(input-group): change default type from 'line' to 'box'#17340
kdinev merged 6 commits into
masterfrom
copilot/change-default-input-type-box

Conversation

Copilot AI commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Material Design removed the line type input style. The default for all form components should now be box.

Changes

  • Default type — Changed fallback from 'line' to 'box' in IgxInputGroupComponent and IgxSelectComponent type getters (IgxComboComponent already defaulted to 'box')
  • Migration schematic (migration-57, v22.0.0) — Adds type="line" to igx-input-group, igx-select, igx-date-picker, igx-date-range-picker, and igx-time-picker elements that lack an explicit type/[type] attribute, preserving existing behavior for apps that relied on the old default
  • Tests — Updated input-group and select specs to expect 'box'; added 8 migration tests covering all target tags and skip-when-already-set cases

Migration behavior

Before (implicit line type):

<igx-input-group>...</igx-input-group>

After migration:

<igx-input-group type="line">...</igx-input-group>

New projects get box by default with no attribute needed.

Copilot AI added 2 commits June 22, 2026 11:39
Change the default type of igx-input-group and igx-select from 'line'
to 'box' to align with current Material Design guidelines.

Add migration schematic (migration-57) that adds type="line" to
existing igx-input-group, igx-select, igx-date-picker,
igx-date-range-picker, and igx-time-picker elements that don't
already have an explicit type attribute.

Closes #17339
Copilot AI changed the title [WIP] Change default input type from line to box feat(input-group): change default type from 'line' to 'box' Jun 22, 2026
Copilot AI requested a review from kdinev June 22, 2026 11:40
@kdinev

kdinev commented Jun 22, 2026

Copy link
Copy Markdown
Member

@copilot The next major version will be 22.0.0, so the migration should be for version 22.0.0

Copilot AI commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

@copilot The next major version will be 22.0.0, so the migration should be for version 22.0.0

Done — renamed the migration to update-22_0_0, updated the version string in both the schematic and its spec, and changed the migration-collection.json entry to "version": "22.0.0" with description "Updates Ignite UI for Angular from v21.2.x to v22.0.0".

@kdinev kdinev marked this pull request as ready for review June 22, 2026 12:26
Copilot AI review requested due to automatic review settings June 22, 2026 12:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 Ignite UI for Angular form components to default to the box input styling (aligning with Material’s removal of the line style) and adds a v22 migration to preserve existing app behavior by explicitly setting type="line" where no type is provided.

Changes:

  • Changed the implicit fallback type from 'line' to 'box' for IgxInputGroupComponent and IgxSelectComponent.
  • Added migration-57 (v22.0.0) to inject type="line" into templates for select/picker/input-group tags that lack type / [type].
  • Updated unit tests and input-group README to reflect the new default.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
projects/igniteui-angular/select/src/select/select.component.ts Changes select type fallback default to box.
projects/igniteui-angular/select/src/select/select.component.spec.ts Updates select specs to assert box default and CSS classes.
projects/igniteui-angular/migrations/update-22_0_0/index.ts Adds v22 migration that inserts type="line" when no explicit type is set.
projects/igniteui-angular/migrations/update-22_0_0/index.spec.ts Adds migration tests for all targeted tags and skip cases.
projects/igniteui-angular/migrations/migration-collection.json Registers migration-57 pointing to update-22_0_0.
projects/igniteui-angular/input-group/src/input-group/input-group.component.ts Changes input-group type fallback default to box and updates its doc comment.
projects/igniteui-angular/input-group/src/input-group/input-group.component.spec.ts Updates input-group spec to assert box default.
projects/igniteui-angular/input-group/README.md Updates documented default type to box.

Comment on lines 297 to 300
@Input()
public get type(): IgxInputGroupType {
return this._type || this._inputGroupType || 'line';
return this._type || this._inputGroupType || 'box';
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 80e41ca — updated the JSDoc to state "Defaults to box if no input-group type is set" instead of referencing the old line default.

Comment thread projects/igniteui-angular/select/src/select/select.component.ts Outdated
Copilot AI requested a review from kdinev June 22, 2026 12:44
@kdinev kdinev merged commit 041baa6 into master Jun 22, 2026
7 checks passed
@kdinev kdinev deleted the copilot/change-default-input-type-box branch June 22, 2026 13:05
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.

4 participants