Skip to content

Commit 0c73466

Browse files
work for the #9717 (#9738)
1 parent dc6eb34 commit 0c73466

File tree

10 files changed

+40
-40
lines changed

10 files changed

+40
-40
lines changed

Diff for: packages/survey-angular-ui/src/questions/matrix.component.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<ng-template #template>
22
<div [class]="model.cssClasses.tableWrapper" #contentElement>
3-
<fieldset>
4-
<legend class="sv-hidden">{{model.locTitle.renderedHtml}}</legend>
5-
<table [class]="model.getTableCss()">
6-
<thead *ngIf="model.showHeader">
3+
<fieldset role="radiogroup">
4+
<legend class="sv-visuallyhidden">{{model.locTitle.renderedHtml}}</legend>
5+
<table [class]="model.getTableCss()" role="presentation">
6+
<thead *ngIf="model.showHeader" role="presentation">
77
<tr>
88
<td *ngIf="model.hasRows"></td>
99
<th

Diff for: packages/survey-react-ui/src/reactquestion_matrix.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class SurveyQuestionMatrix extends SurveyQuestionElementBase {
6767
);
6868
}
6969
var header = !this.question.showHeader ? null : (
70-
<thead>
70+
<thead role="presentation">
7171
<tr>
7272
{rowsTH}
7373
{headers}
@@ -79,9 +79,9 @@ export class SurveyQuestionMatrix extends SurveyQuestionElementBase {
7979
className={cssClasses.tableWrapper}
8080
ref={root => (this.setControl(root))}
8181
>
82-
<fieldset>
83-
<legend className="sv-hidden">{this.question.locTitle.renderedHtml}</legend>
84-
<table className={this.question.getTableCss()}>
82+
<fieldset role="radiogroup">
83+
<legend className="sv-visuallyhidden">{this.question.locTitle.renderedHtml}</legend>
84+
<table className={this.question.getTableCss()} role="presentation">
8585
{header}
8686
<tbody>{rows}</tbody>
8787
</table>

Diff for: packages/survey-vue3-ui/src/Matrix.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
22
<div :class="question.cssClasses.tableWrapper" ref="root">
3-
<fieldset>
4-
<legend class="sv-hidden">{{ question.locTitle.renderedHtml }}</legend>
5-
<table :class="question.getTableCss()">
6-
<thead v-if="question.showHeader">
3+
<fieldset role="radiogroup">
4+
<legend class="sv-visuallyhidden">{{ question.locTitle.renderedHtml }}</legend>
5+
<table :class="question.getTableCss()" role="presentation">
6+
<thead v-if="question.showHeader" role="presentation">
77
<tr>
88
<td v-if="question.hasRows"></td>
99
<th

Diff for: tests/markup/snapshots/matrix-empty.snap.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="sd-matrix sd-table-wrapper">
2-
<fieldset>
3-
<legend class="sv-hidden">matrix</legend>
4-
<table class="sd-matrix__table sd-table sd-table--align-middle sd-table--columnsautowidth">
5-
<thead>
2+
<fieldset role="radiogroup">
3+
<legend class="sv-visuallyhidden">matrix</legend>
4+
<table class="sd-matrix__table sd-table sd-table--align-middle sd-table--columnsautowidth" role="presentation">
5+
<thead role="presentation">
66
<tr>
77
<th class="sd-table__cell sd-table__cell--header">
88
<span class="sv-string-viewer">col_1</span>

Diff for: tests/markup/snapshots/matrix-mobile-v2.snap.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="sd-matrix sd-table-wrapper">
2-
<fieldset>
3-
<legend class="sv-hidden">matrix</legend>
4-
<table class="sd-matrix__table sd-table sd-table--align-middle">
5-
<thead>
2+
<fieldset role="radiogroup">
3+
<legend class="sv-visuallyhidden">matrix</legend>
4+
<table class="sd-matrix__table sd-table sd-table--align-middle" role="presentation">
5+
<thead role="presentation">
66
<tr>
77
<td>
88
</td>

Diff for: tests/markup/snapshots/matrix-modern.snap.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="sd-matrix sd-table-wrapper">
2-
<fieldset>
3-
<legend class="sv-hidden">matrix</legend>
4-
<table class="sd-matrix__table sd-table sd-table--align-middle sd-table--columnsautowidth">
5-
<thead>
2+
<fieldset role="radiogroup">
3+
<legend class="sv-visuallyhidden">matrix</legend>
4+
<table class="sd-matrix__table sd-table sd-table--align-middle sd-table--columnsautowidth" role="presentation">
5+
<thead role="presentation">
66
<tr>
77
<td>
88
</td>

Diff for: tests/markup/snapshots/matrix-v2-disabled.snap.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="sd-matrix sd-table-wrapper">
2-
<fieldset>
3-
<legend class="sv-hidden">matrix</legend>
4-
<table class="sd-matrix__table sd-table sd-table--align-middle sd-table--columnsautowidth">
5-
<thead>
2+
<fieldset role="radiogroup">
3+
<legend class="sv-visuallyhidden">matrix</legend>
4+
<table class="sd-matrix__table sd-table sd-table--align-middle sd-table--columnsautowidth" role="presentation">
5+
<thead role="presentation">
66
<tr>
77
<td>
88
</td>

Diff for: tests/markup/snapshots/matrix-v2-readonly.snap.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="sd-matrix sd-table-wrapper">
2-
<fieldset>
3-
<legend class="sv-hidden">matrix</legend>
4-
<table class="sd-matrix__table sd-table sd-table--align-middle sd-table--columnsautowidth">
5-
<thead>
2+
<fieldset role="radiogroup">
3+
<legend class="sv-visuallyhidden">matrix</legend>
4+
<table class="sd-matrix__table sd-table sd-table--align-middle sd-table--columnsautowidth" role="presentation">
5+
<thead role="presentation">
66
<tr>
77
<td>
88
</td>

Diff for: tests/markup/snapshots/matrix-v2.snap.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="sd-matrix sd-table-wrapper">
2-
<fieldset>
3-
<legend class="sv-hidden">matrix</legend>
4-
<table class="sd-matrix__table sd-table sd-table--align-middle sd-table--columnsautowidth">
5-
<thead>
2+
<fieldset role="radiogroup">
3+
<legend class="sv-visuallyhidden">matrix</legend>
4+
<table class="sd-matrix__table sd-table sd-table--align-middle sd-table--columnsautowidth" role="presentation">
5+
<thead role="presentation">
66
<tr>
77
<td>
88
</td>

Diff for: tests/markup/snapshots/matrix-widths.snap.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="sd-matrix sd-table-wrapper">
2-
<fieldset>
3-
<legend class="sv-hidden">matrix</legend>
4-
<table class="sd-matrix__table sd-table sd-table--align-middle sd-table--columnsautowidth">
5-
<thead>
2+
<fieldset role="radiogroup">
3+
<legend class="sv-visuallyhidden">matrix</legend>
4+
<table class="sd-matrix__table sd-table sd-table--align-middle sd-table--columnsautowidth" role="presentation">
5+
<thead role="presentation">
66
<tr>
77
<td>
88
</td>

0 commit comments

Comments
 (0)