Skip to content

Commit eb05801

Browse files
committed
Fix TimezonePicker css classes
1 parent 06cd3e2 commit eb05801

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

library/Notifications/Web/Control/TimezonePicker.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Icinga\Web\Session;
1010
use IntlTimeZone;
1111
use ipl\Html\Form;
12-
use ipl\Html\HtmlElement;
1312
use ipl\I18n\Translation;
1413
use ipl\Web\Common\FormUid;
1514
use Throwable;
@@ -25,7 +24,10 @@ class TimezonePicker extends Form
2524
/** @var string Default timezone param */
2625
public const DEFAULT_TIMEZONE_PARAM = 'display_timezone';
2726

28-
protected $defaultAttributes = ['class' => 'timezone-picker', 'name' => 'timezone-picker-form'];
27+
protected $defaultAttributes = [
28+
'class' => 'timezone-picker icinga-form inline icinga-controls',
29+
'name' => 'timezone-picker-form'
30+
];
2931

3032
protected string $defaultTimezone;
3133

@@ -82,7 +84,6 @@ public function assemble(): void
8284
]
8385
);
8486
$select = $this->getElement(static::DEFAULT_TIMEZONE_PARAM);
85-
$select->prependWrapper(HtmlElement::create('div', ['class' => 'icinga-controls']));
8687
$select->setValue($this->getDisplayTimezone());
8788
}
8889
}

public/css/form.less

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,7 @@
8585
}
8686

8787
.timezone-picker {
88-
display: inline;
8988
margin-left: 1em;
90-
91-
.icinga-controls {
92-
display: inline;
93-
}
9489
}
9590

9691
/* Style */

0 commit comments

Comments
 (0)