Skip to content

Commit

Permalink
#6296 Clear button corners (#6297)
Browse files Browse the repository at this point in the history
* #6296 Clear button corners
Fixes #6296

* #6296 Clear button corners
Fixes #6296
  • Loading branch information
novikov82 authored Dec 23, 2024
1 parent ad97ce0 commit b81c55f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

.svc-link__button {
@include ctrDefaultBoldFont;
border-radius: var(--ctr-actionbar-button-corner-radius, calcSize(12.5));
}

.svc-question-link__set-button {
Expand All @@ -10,7 +11,6 @@
.svc-link-value-button {
--thm-margin-inline-start: calc(-1 * var(--ctr-actionbar-button-padding-left-medium-text));
margin-inline-start: var(--thm-margin-inline-start, calcSize(-2));
border-radius: var(--ctr-actionbar-button-corner-radius, calcSize(12.5));
}
.svc-question-link__clear-button {
color: $red;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Selector } from "testcafe";
import { ClientFunction, Selector } from "testcafe";
import { url, setJSON, wrapVisualTest, takeElementScreenshot } from "../../helper";

const title = "ValueLink Actions in Data section Screenshot";
Expand Down Expand Up @@ -39,5 +39,12 @@ test("Check states", async (t) => {

await t.hover(buttonElement);
await takeElementScreenshot("action-button-hovered.png", buttonElement, t, comparer);

await ClientFunction(() => {
window["creator"].survey.getAllQuestions()[0].defaultValue = "val";
})();
const clearButtonElement = Selector(".svc-link__button.svc-question-link__clear-button.svc-action-button");
await t.hover(clearButtonElement);
await takeElementScreenshot("action-clear-button-hovered.png", clearButtonElement, t, comparer);
});
});

0 comments on commit b81c55f

Please sign in to comment.