Skip to content

Commit

Permalink
Ensures MatFormField label is always present
Browse files Browse the repository at this point in the history
  • Loading branch information
lukestanley committed Nov 26, 2024
1 parent b429dc2 commit 0b90eaf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('workspace-project App', () => {
cy.get('[data-cy="toolbar-setting-button"]').click();
cy.get('app-workflow-sidenav').contains('testingComment').should('exist');
cy.get('app-workflow-sidenav').contains('testingComment').click();
// cy.get('app-workflow-sidenav').contains('Block Comment'); // FIXME: regression - MatFormField placeholder text is not visible
cy.get('app-workflow-sidenav').contains('Block Comment');
});


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
</ng-container>

<mat-form-field class="block-comment-container">
<textarea type="textarea" rows="2" placeholder="Block Comment" aria-label="Block Comment" matInput
<mat-label>Block Comment</mat-label>
<textarea type="textarea" rows="2" aria-label="Block Comment" matInput
[formControl]="blockCommentFormControl" ></textarea>
</mat-form-field>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<ngx-monaco-editor [options]="editorOptions" style="height: 240px;" [(ngModel)]="mappingModel"></ngx-monaco-editor>
<mat-form-field class="block-comment-container">
<textarea type="textarea" rows="3" placeholder="Block Comment" aria-label="Block Comment" matInput
<mat-label>Block Comment</mat-label>
<textarea type="textarea" rows="3" aria-label="Block Comment" matInput
[formControl]="blockCommentFormControl" ></textarea>
</mat-form-field>

0 comments on commit 0b90eaf

Please sign in to comment.