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