#15514Yet another table accessibility improvement
Description
When youmake a table element, you can ask to have or have-not CSS styles with the table.
You can also ask for a specific css class for you table. The BE tool doesn’t tell that if you want a specific class, you have to disable other classes.
I have a patch that could be good to improve this and permit to have the auto-built classes PLUS the specific class
Original code :
$tableTagParams = $this->getTableAttributes($conf,$type);
if (!$noStyles) {
$tableTagParams[‘class’] = ‘contenttable contenttable-’.$type;
} elseif ($tableClass) {
$tableTagParams[‘class’] = $tableClass;
}
My proposition :
$tableTagParams = $this->getTableAttributes($conf,$type);
if (!$noStyles) {
$tableTagParams[‘class’] = ‘contenttable contenttable-’.$type.’ ‘.$tableClass;
} elseif ($tableClass) {
$tableTagParams[‘class’] = $tableClass;
}
(issue imported from #M2405)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.