Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 committed Jan 9, 2024
2 parents 6aeb790 + f780ff6 commit 1823f0d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/defaultV2-theme/blocks/sd-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,10 @@
fill: $font-questiondescription-color;
}

&:hover {
&:hover,
&:focus {
background: $primary-light;

outline: none;
svg {
fill: $primary;
}
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: 6 additions & 1 deletion visualRegressionTests/tests/defaultV2/matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ frameworks.forEach(framework => {
await takeElementScreenshot("question-matrix-dropdown-detail-no-header-expanded.png", questionRoot, t, comparer);

await t.click(Selector(".sd-table__cell--detail-button").filterVisible().nth(1));
await t.hover(questionRoot, { offsetX: 1, offsetY: 1 });
await t.click(questionRoot, { offsetX: 1, offsetY: 1 });

await takeElementScreenshot("question-matrix-dropdown-detail-no-header.png", questionRoot, t, comparer);
});
Expand Down Expand Up @@ -736,6 +736,11 @@ frameworks.forEach(framework => {

await t.hover(Selector(".sd-table__cell--detail-button"));
await takeElementScreenshot("question-matrix-detail-hover.png", questionRoot, t, comparer);

await t
.click(Selector("body"), { offsetX: 5, offsetY: 5 });
await t.pressKey("tab");
await takeElementScreenshot("question-matrix-detail-focus.png", questionRoot, t, comparer);
});
});

Expand Down

0 comments on commit 1823f0d

Please sign in to comment.