Skip to content

[InputGroup]: mark community InputGroup as deprecated #762

Description

@ly-tempel-bitweb

Problem

The Community InputGroup (src/community/components/form/input-group) has a TEDI-ready replacement (src/tedi/components/form/input-group), but nothing tells consumers to migrate. It has no @deprecated JSDoc, no console warning, and no Storybook tag.

Storybook: https://storybook.tedi.ee/angular/rc/?path=/docs/community-form-inputgroup--docs

Solution

  • Add @deprecated Use InputGroup from TEDI-ready instead. This component will be removed from future versions. JSDoc to InputGroupComponent
  • Call warnDeprecated("Community tedi-input-group", "Use the TEDI-Ready `tedi-input-group` from `@tedi-design-system/angular/tedi` instead.") in the constructor
  • Add "deprecated" to parameters.status.type in input-group.stories.ts
  • Update or add a spec for the warning if needed

Metadata

Metadata

Labels

communityCommunity component issue

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions