Skip to content

Commit

Permalink
resolve #6499 shifted helper text
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaLarina committed Feb 13, 2025
1 parent 2e8698e commit 748d70e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
// padding-left: 0;

.spg-help-action {
flex-grow: 1;
margin-inline-end: auto;

.spg-action-button--icon {
padding: var(--ctr-actionbar-button-padding-top-small-icon, var(--sjs-spacing-x05))
Expand Down
1 change: 1 addition & 0 deletions packages/survey-creator-core/src/property-grid/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ export class PropertyGridTitleActionsCreator {
iconSize: "auto",
css: "spg-help-action",
showTitle: false,
disableHide: true,
action: () => {
question.descriptionLocation =
question.descriptionLocation != "hidden" ? "hidden" : "underTitle";
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 16 additions & 1 deletion visualRegressionTests/tests/designer/pg-editors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ test("popup overlay in property grid", async (t) => {
await takeElementScreenshot("pg-overlay-popup.png", getVisibleElement(".sv-popup .sv-popup__container"), t, comparer);
});
});
fixture`${title}`.page`${url}`.beforeEach(async (t) => { });

test("Check creator theme settings", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
Expand All @@ -877,3 +877,18 @@ test("Check creator theme settings", async (t) => {
await takeElementScreenshot("creator-theme-settings.png", getVisibleElement(".spg-body"), t, comparer);
});
});

test("Helper action not hidden", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1240, 870);
const westResizer = Selector(".svc-resizer-west");
const questionHeader = getPropertyGridCategory("Conditions").parent(".spg-panel").find(".spg-question__header");
const json = { "pages": [{ "name": "page1", "elements": [{ "type": "text", "name": "text", }] }] };
await setJSON(json);
await t.wait(1000);
await t.click(".svc-page", { offsetX: 5, offsetY: 5 });
await t.click(getPropertyGridCategory("Conditions"));
await t.drag(westResizer, 200, 0);
await takeElementScreenshot("helper-action.png", questionHeader, t, comparer);
});
});

0 comments on commit 748d70e

Please sign in to comment.