Skip to content

Commit

Permalink
fix: forms have better visibility on phones (#1736)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSlimvReal authored Mar 2, 2023
1 parent d57f441 commit 27d701a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 4 additions & 5 deletions e2e/integration/MarkingChildAsDropout.cy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
describe("Scenario: Marking a child as dropout - E2E test", function () {
before("GIVEN I am on the details page of a specific child", function () {
// go to the url with the Child
cy.visit("child/1");
// go to a child
cy.visit("child");
cy.get("tr").eq(2).click();
// save the name of this Child to the variable
cy.get(".mat-title > .remove-margin-bottom").invoke("text").as("childName");
});
Expand All @@ -15,9 +16,7 @@ describe("Scenario: Marking a child as dropout - E2E test", function () {
cy.get('[aria-label="Open calendar"]').filter(":visible").click();
cy.get(".mat-calendar-body-active:visible").click();
// click on button with the content "Save"
cy.get(".form-buttons-wrapper:visible", { timeout: 10000 })
.contains("button", "Save")
.click();
cy.get(".form-buttons-wrapper:visible").contains("button", "Save").click();
});

it("THEN I should not see this child in the list of all children at first", function () {
Expand Down
2 changes: 2 additions & 0 deletions src/styles/resets/_mat-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/* display disabled form values in black for better readability as we disable forms by default */
.mat-mdc-input-element:disabled, .mat-mdc-select-disabled .mat-mdc-select-value, .mat-mdc-checkbox-disabled label {
color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, text) !important;
-webkit-text-fill-color: black;
opacity: 1;
}

.mdc-text-field--filled {
Expand Down

0 comments on commit 27d701a

Please sign in to comment.