MDL-72896 Accessibility: Make html_table responsive

The tables are generated by html_table will responsive across viewports
This commit is contained in:
Huong Nguyen
2021-11-09 09:41:27 +07:00
parent d135a1200a
commit ffca35b805
7 changed files with 18 additions and 6 deletions
+2
View File
@@ -193,6 +193,7 @@ class core_html_writer_testcase extends basic_testcase {
$row->cells[] = $cell;
$table = new html_table();
$table->responsive = false;
// The attribute will get overwritten by the ID.
$table->id = 'Jeffrey';
$table->attributes['id'] = 'will get overwritten';
@@ -230,6 +231,7 @@ EOF;
);
$table->caption = "Who even knows?";
$table->captionhide = true;
$table->responsive = false;
$output = html_writer::table($table);
$expected = <<<EOF