Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed Aug 22, 2023
2 parents 444e0d8 + 28e4d45 commit 3b0239f
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/defaultV2-theme/blocks/sd-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
td:first-of-type {
background-color: $background-dim-light;

&.sd-matrix__text--checked {
background-color: $primary-light;
}

.sd-input {
background-color: $primary-foreground;
}
Expand Down
4 changes: 3 additions & 1 deletion src/question_custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export interface ICustomQuestionTypeConfiguration {
*/
title?: string;
/**
* An icon name for the custom question type.
* The name of an icon to use for the custom question type.
*
* [UI Icons](https://surveyjs.io/form-library/documentation/icons (linkStyle))
*/
iconName?: string;
/**
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions visualRegressionTests/tests/defaultV2/matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -772,5 +772,53 @@ frameworks.forEach(framework => {
await takeElementScreenshot("question-matrix-with-boolean-column.png", questionRoot, t, comparer);
});
});
test("Matrix rubric alternate rows", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(800, 600);
await initSurvey(framework, {
"pages": [
{
"name": "page1",
"elements": [
{
"type": "matrix",
"name": "planningPerformance",
"title": "Question",
"hideNumber": true,
"defaultValue": {
"Row 1": "Column 1",
"Row 2": "Column 2"
},
"alternateRows": true,
"columns": [
"Column 1",
"Column 2"
],
"rows": [
"Row 1",
"Row 2"
],
"cells": {
"Row 1": {
"Column 1": "Abc",
"Column 2": "Cde"
},
"Row 2": {
"Column 1": "Fgh",
"Column 2": "Igk"
}
}
}
]
}
],
"widthMode": "static"
});
//await t.click(Selector("body"), { offsetX: 5, offsetY: 5 });
const rowElement = Selector(".sd-row");

await takeElementScreenshot("question-matrix-rubric-alternate-rows.png", rowElement, t, comparer);
});
});

});

0 comments on commit 3b0239f

Please sign in to comment.