Skip to content

Commit

Permalink
resolve #7655 Multi-Select Dropdown (TagBox) - Cannot review all sele…
Browse files Browse the repository at this point in the history
…cted values in survey display mode
  • Loading branch information
OlgaLarina committed Jan 12, 2024
1 parent 4110334 commit 63e1899
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/defaultV2-theme/blocks/sd-tagbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
padding-inline-start: calcSize(0.5); //padding-left
}

.sd-tagbox.sd-input--disabled {
white-space: normal;
}

.sd-tagbox.sd-tagbox--empty {
// padding: calcSize(0.5) calcSize(6) calcSize(0.5) calcSize(2);
// padding-block: calcSize(0.5);
Expand Down Expand Up @@ -114,7 +118,6 @@
}

.sd-tagbox.sd-tagbox--empty {

.sd-tagbox__hint,
.sd-tagbox__hint-suffix-wrapper,
.sd-tagbox__filter-string-input {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions visualRegressionTests/tests/defaultV2/tagbox.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Selector, ClientFunction, t } from "testcafe";
import { getListItemByText } from "../../../testCafe/helper";
import { getListItemByText, setOptions } from "../../../testCafe/helper";
import { url, frameworks, initSurvey, url_test, takeElementScreenshot, wrapVisualTest, resetFocusToBody } from "../../helper";

const title = "Tagbox Screenshot";
Expand Down Expand Up @@ -187,7 +187,7 @@ frameworks.forEach(async framework => {
questions: [
{
type: "tagbox",
name: "question12",
name: "q1",
hasOther: "true",
allowClear: false,
defaultValue: [
Expand Down Expand Up @@ -220,6 +220,9 @@ frameworks.forEach(async framework => {

const questionTagbox = Selector(".sd-input.sd-tagbox");
await takeElementScreenshot("tagbox-question-multiline-selected-items.png", questionTagbox, t, comparer);

await setOptions("q1", { "readOnly": true });
await takeElementScreenshot("tagbox-question-multiline-selected-items-readonly.png", questionTagbox, t, comparer);
});
});

Expand Down

0 comments on commit 63e1899

Please sign in to comment.