Skip to content

Commit be45956

Browse files
authored
fix(design): correct DaffFormFieldAppearance type name spelling (#4637)
1 parent a145c13 commit be45956

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

libs/design/form-field/src/form-field/form-field.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ import { DaffFormFieldControl } from '../form-field-control';
3232

3333
let daffFormFieldId = 0;
3434

35-
export type DaffFormFieldApperanace = 'fluid' | 'fixed';
35+
export type DaffFormFieldAppearance = 'fluid' | 'fixed';
3636

37-
enum DaffFormFieldApperanaceEnum {
37+
enum DaffFormFieldAppearanceEnum {
3838
Fluid = 'fluid',
3939
Fixed = 'fixed',
4040
}
@@ -174,15 +174,15 @@ export class DaffFormFieldComponent implements AfterContentInit, AfterContentChe
174174
/**
175175
* The appearance of the form field. Defaults to `fluid`.
176176
*/
177-
appearance = input(DaffFormFieldApperanaceEnum.Fluid, {
178-
transform: (value: DaffFormFieldApperanace | '' | null | undefined) =>
179-
value || DaffFormFieldApperanaceEnum.Fluid,
177+
appearance = input(DaffFormFieldAppearanceEnum.Fluid, {
178+
transform: (value: DaffFormFieldAppearance | '' | null | undefined) =>
179+
value || DaffFormFieldAppearanceEnum.Fluid,
180180
});
181181

182182
/**
183183
* @docs-private
184184
*/
185-
isFixed = computed(() => this.appearance() === DaffFormFieldApperanaceEnum.Fixed);
185+
isFixed = computed(() => this.appearance() === DaffFormFieldAppearanceEnum.Fixed);
186186

187187
/**
188188
* The unique id of the form field. Defaults to an autogenerated value. When using this,

libs/design/form-field/src/specs/usage.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { DaffInputComponent } from '@daffodil/design/input';
2424
import { DaffNativeSelectComponent } from '@daffodil/design/native-select';
2525
import { patchElementFocus } from '@daffodil/design/testing';
2626

27-
import { DaffFormFieldApperanace } from '../form-field/form-field.component';
27+
import { DaffFormFieldAppearance } from '../form-field/form-field.component';
2828

2929
@Component({ template: `
3030
<daff-form-field [id]="id()" [appearance]="appearance()">
@@ -41,7 +41,7 @@ imports: [
4141
class WrapperComponent {
4242
formControl = new UntypedFormControl('', Validators.required);
4343
id = signal<string>(undefined);
44-
appearance = signal<DaffFormFieldApperanace>('fixed');
44+
appearance = signal<DaffFormFieldAppearance>('fixed');
4545
}
4646

4747
describe('@daffodil/design | DaffFormFieldComponent | Usage', () => {

0 commit comments

Comments
 (0)