Add ability to specify one CSS class to apply to all tab panels (#3761)

Credit to @ebashu-on-holidays
This commit is contained in:
Alexander Shapoval 2018-09-16 19:51:00 +03:00 committed by Luke Towers
parent 0ffdbc5efd
commit 9da0af4533
2 changed files with 5 additions and 1 deletions

View File

@ -125,7 +125,7 @@ body {
display: table;
table-layout: fixed;
height: 100%;
width: 100%;
min-width: 100%;
> .layout-row {
display: table-row;

View File

@ -182,6 +182,10 @@ class FormTabs implements IteratorAggregate, ArrayAccess
*/
public function getPaneCssClass($index = null, $label = null)
{
if (is_string($this->paneCssClass)) {
return $this->paneCssClass;
}
if ($index !== null && isset($this->paneCssClass[$index])) {
return $this->paneCssClass[$index];
}