diff --git a/packages/survey-core/src/defaultCss/defaultV2Css.ts b/packages/survey-core/src/defaultCss/defaultV2Css.ts index 7770347bd3..deca6a38da 100644 --- a/packages/survey-core/src/defaultCss/defaultV2Css.ts +++ b/packages/survey-core/src/defaultCss/defaultV2Css.ts @@ -548,7 +548,7 @@ export var defaultV2Css = { actionsCellDrag: "sd-table__cell--drag", emptyCell: "sd-table__cell--empty", verticalCell: "sd-table__cell--vertical", - cellQuestionWrapper: "sd-table__question-wrapper", + cellQuestionWrapper: "sd-matrix__question-wrapper sd-table__question-wrapper", compact: "sd-element--with-frame sd-element--compact" }, matrixdynamic: { @@ -604,7 +604,7 @@ export var defaultV2Css = { draggedRow: "sv-matrixdynamic-dragged-row", emptyCell: "sd-table__cell--empty", verticalCell: "sd-table__cell--vertical", - cellQuestionWrapper: "sd-table__question-wrapper", + cellQuestionWrapper: "sd-matrix__question-wrapper sd-table__question-wrapper", errorsCell: "sd-table__cell--error", errorsCellTop: "sd-table__cell--error-top", errorsCellBottom: "sd-table__cell--error-bottom", diff --git a/packages/survey-core/src/defaultV2-theme/blocks/sd-input.scss b/packages/survey-core/src/defaultV2-theme/blocks/sd-input.scss index e1ca0aab65..248c9ba4eb 100644 --- a/packages/survey-core/src/defaultV2-theme/blocks/sd-input.scss +++ b/packages/survey-core/src/defaultV2-theme/blocks/sd-input.scss @@ -124,8 +124,13 @@ textarea { inset-block-end: calcSize(1.5); } -.sd-question__content:focus-within .sd-remaining-character-counter { - display: flex; +.sd-text__content, +.sd-comment__content, +.sd-multipletext__content, +.sd-matrix__question-wrapper { + &:focus-within .sd-remaining-character-counter { + display: flex; + } } @mixin runnable-track { diff --git a/packages/survey-core/src/defaultV2-theme/blocks/sd-table.scss b/packages/survey-core/src/defaultV2-theme/blocks/sd-table.scss index 52a5bbaee0..5be1ed0ddc 100644 --- a/packages/survey-core/src/defaultV2-theme/blocks/sd-table.scss +++ b/packages/survey-core/src/defaultV2-theme/blocks/sd-table.scss @@ -364,7 +364,7 @@ padding: calcSize(1.5) calcSize(1); } -.sd-matrixdynamic__content .sd-table__question-wrapper { +.sd-matrix__question-wrapper { position: relative; } diff --git a/tests/markup/snapshots/matrixdropdown-cell-errors-bottom.snap.html b/tests/markup/snapshots/matrixdropdown-cell-errors-bottom.snap.html index 3551dd0889..0bd5e3400c 100644 --- a/tests/markup/snapshots/matrixdropdown-cell-errors-bottom.snap.html +++ b/tests/markup/snapshots/matrixdropdown-cell-errors-bottom.snap.html @@ -17,7 +17,7 @@ row1 -
+
diff --git a/tests/markup/snapshots/matrixdropdown-cell-errors-top.snap.html b/tests/markup/snapshots/matrixdropdown-cell-errors-top.snap.html index e39a233678..5a29a63887 100644 --- a/tests/markup/snapshots/matrixdropdown-cell-errors-top.snap.html +++ b/tests/markup/snapshots/matrixdropdown-cell-errors-top.snap.html @@ -32,7 +32,7 @@ row1 -
+
diff --git a/tests/markup/snapshots/matrixdropdown-disabled.snap.html b/tests/markup/snapshots/matrixdropdown-disabled.snap.html index aa5ed3e173..2017849f21 100644 --- a/tests/markup/snapshots/matrixdropdown-disabled.snap.html +++ b/tests/markup/snapshots/matrixdropdown-disabled.snap.html @@ -20,12 +20,12 @@ Row 1 -
+
-
+
@@ -35,12 +35,12 @@ Row 2 -
+
-
+
diff --git a/tests/markup/snapshots/matrixdropdown-hidden-question-mobile.snap.html b/tests/markup/snapshots/matrixdropdown-hidden-question-mobile.snap.html index 7524229acc..5c0fe7dca6 100644 --- a/tests/markup/snapshots/matrixdropdown-hidden-question-mobile.snap.html +++ b/tests/markup/snapshots/matrixdropdown-hidden-question-mobile.snap.html @@ -23,7 +23,7 @@ col1 -
+
@@ -33,7 +33,7 @@ col1 -
+
@@ -48,7 +48,7 @@ col1 -
+
diff --git a/tests/markup/snapshots/matrixdropdown-readonly.snap.html b/tests/markup/snapshots/matrixdropdown-readonly.snap.html index 1d9d6d37fa..103ece95ce 100644 --- a/tests/markup/snapshots/matrixdropdown-readonly.snap.html +++ b/tests/markup/snapshots/matrixdropdown-readonly.snap.html @@ -20,12 +20,12 @@ Row 1 -
+
-
+
@@ -35,12 +35,12 @@ Row 2 -
+
-
+
diff --git a/tests/markup/snapshots/matrixdropdown-vertical.snap.html b/tests/markup/snapshots/matrixdropdown-vertical.snap.html index 0bdf923530..616b724e5c 100644 --- a/tests/markup/snapshots/matrixdropdown-vertical.snap.html +++ b/tests/markup/snapshots/matrixdropdown-vertical.snap.html @@ -19,12 +19,12 @@ -
+
-
+
@@ -35,12 +35,12 @@ -
+
-
+
diff --git a/tests/markup/snapshots/matrixdropdown.snap.html b/tests/markup/snapshots/matrixdropdown.snap.html index 116ac9d4de..ce241c759c 100644 --- a/tests/markup/snapshots/matrixdropdown.snap.html +++ b/tests/markup/snapshots/matrixdropdown.snap.html @@ -20,12 +20,12 @@ Row 1 -
+
-
+
@@ -35,12 +35,12 @@ Row 2 -
+
-
+
diff --git a/tests/markup/snapshots/matrixdynamic-defaultV2.snap.html b/tests/markup/snapshots/matrixdynamic-defaultV2.snap.html index b425a06043..ca845b56e6 100644 --- a/tests/markup/snapshots/matrixdynamic-defaultV2.snap.html +++ b/tests/markup/snapshots/matrixdynamic-defaultV2.snap.html @@ -19,7 +19,7 @@ -
+
-
+
-
+