diff options
author | Volker E. <volker.e@wikimedia.org> | 2024-04-04 19:19:40 -0700 |
---|---|---|
committer | Volker E. <volker.e@wikimedia.org> | 2024-04-14 23:57:44 -0700 |
commit | 2fde2ca7dee5b87c0454d0fe1fdb0f76ab64ae95 (patch) | |
tree | 35fd00dfcce6e56f3411e7fb057e0c8341f0e30b | |
parent | bd3b3c6cd7b83268101cf8693623ceaa0bff7907 (diff) | |
download | mediawikicore-2fde2ca7dee5b87c0454d0fe1fdb0f76ab64ae95.tar.gz mediawikicore-2fde2ca7dee5b87c0454d0fe1fdb0f76ab64ae95.zip |
CodexHTMLForm: Add specific CSS class to fieldset
Fieldset elements are used to group related elements in a form.
This patch adds a specific CSS class for separating layout
styling from `.cdx-field`.
Bug: T361541
Depends-On: I9c7ef29243cce9827105af18dd3d4fb79b07b50e
Change-Id: Ib3157a1c0c4f06424ce0c6f219534a3e4cf03240
-rw-r--r-- | includes/htmlform/CodexHTMLForm.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/htmlform/CodexHTMLForm.php b/includes/htmlform/CodexHTMLForm.php index 8befe094ac91..3536a54c8cba 100644 --- a/includes/htmlform/CodexHTMLForm.php +++ b/includes/htmlform/CodexHTMLForm.php @@ -72,7 +72,7 @@ class CodexHTMLForm extends HTMLForm { } protected function wrapFieldSetSection( $legend, $section, $attributes, $isRoot ) { - $attributes['class'] = 'cdx-field'; + $attributes['class'] = 'cdx-field cdx-field--is-fieldset'; $legendElement = Html::rawElement( 'legend', [ 'class' => [ 'cdx-label' ] ], $legend ); return Html::rawElement( 'fieldset', $attributes, "$legendElement\n$section" ) . "\n"; } |