Skip to content

Commit

Permalink
Fixed #14721
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 30, 2024
1 parent 71f4a2d commit 0f74b6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Fixed a bug where element cards could overflow their containers within Live Preview. ([#14710](https://github.com/craftcms/cms/issues/14710))
- Fixed a bug where links within the Queue Manager utility weren’t styled like links. ([#14716](https://github.com/craftcms/cms/issues/14716))
- Fixed a bug where tooltips within element labels caused the element title to be read twice by screen readers.
- Fixed a styling issue when editing an entry without any meta fields. ([#14721](https://github.com/craftcms/cms/issues/14721))

## 5.0.0 - 2024-03-26

Expand Down
2 changes: 1 addition & 1 deletion src/base/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -5365,7 +5365,7 @@ public function getSidebarHtml(bool $static): string
{
$components = [];

$metaFieldsHtml = $this->metaFieldsHtml($static);
$metaFieldsHtml = trim($this->metaFieldsHtml($static));
if ($metaFieldsHtml !== '') {
$components[] = Html::tag('div', $metaFieldsHtml, ['class' => 'meta']) .
Html::tag('h2', Craft::t('app', 'Metadata'), ['class' => 'visually-hidden']);
Expand Down

0 comments on commit 0f74b6a

Please sign in to comment.