diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.ts index b3b9fc4875c3..a1c67bbde04f 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.ts @@ -36,24 +36,12 @@ export const ATTR_WITH_VALUES_TO_REPLACE: ReplacementAttributeValue[] = [ withTagNames: hasPseudo, valueReplacer: (condition) => `${condition} ? 'active' : null`, }, - { - attrNames: ['[pseudoFocus]'], - newAttrName: '[tuiAppearanceState]', - withTagNames: hasPseudo, - valueReplacer: (condition) => `${condition} ? 'focus' : null`, - }, { attrNames: ['[pseudoHover]'], newAttrName: '[tuiAppearanceState]', withTagNames: hasPseudo, valueReplacer: (condition) => `${condition} ? 'hover' : null`, }, - { - attrNames: ['[pseudoInvalid]'], - newAttrName: '[tuiAppearanceState]', - withTagNames: hasPseudo, - valueReplacer: (condition) => `${condition} ? 'invalid' : null`, - }, { attrNames: ['[pseudoDisabled]'], newAttrName: '[tuiAppearanceState]', diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/attrs-to-replace.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/attrs-to-replace.ts index 37a0193d970a..161d7a433052 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/attrs-to-replace.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/attrs-to-replace.ts @@ -287,4 +287,13 @@ export const ATTRS_TO_REPLACE: ReplacementAttribute[] = [ }, to: {attrName: '[appearance]'}, }, + { + from: { + attrName: '[pseudoFocus]', + withTagNames: ['*'], + }, + to: { + attrName: '[tuiAppearanceFocus]', + }, + }, ]; diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-blocked.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-blocked.spec.ts index 6017012dacc6..248ad20ea098 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-blocked.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-blocked.spec.ts @@ -87,7 +87,7 @@ const TEMPLATE_BEFORE = ` `.trim(); const TEMPLATE_AFTER = ` - +