Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

2.6.1 (Unreleased)
---------------------
- Enh #431: Add aria-label attribute for icon-only buttons

2.6.0 (June 5, 2026)
---------------------
- Enh #410: Update for HumHub 1.19
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Wiki",
"description": "Create and edit pages with this powerful tool. Build a collaborative knowledge base, view and share information with your colleagues.",
"keywords": ["wiki"],
"version": "2.6.0",
"version": "2.6.1",
"humhub": {
"minVersion": "1.19"
},
Expand Down
4 changes: 3 additions & 1 deletion widgets/views/pageListItemTitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
?>
<?= Html::beginTag('div', $options) ?>
<div>
<?= Link::to()->icon('arrows')
<?= Link::to()
->icon('arrows')
->cssClass('wiki-page-control drag-icon link-icon-only')
->options(['aria-label' => Yii::t('WikiModule.base', 'Drag to reorder')])
->visible($item && $showDrag) ?>
<?= ($icon ? Icon::get($icon) . ' ' : '') ?>
<?= Html::tag($url ? 'a' : 'span', Html::encode($title), ['href' => $url, 'class' => 'page-title-text']) ?>
Expand Down
5 changes: 4 additions & 1 deletion widgets/views/wikiSearchForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

<?= Html::textInput('keyword', $keyword, ['placeholder' => $placeholder, 'class' => 'form-control']) ?>

<?= Button::light()->icon('search')->submit() ?>
<?= Button::light()
->icon('search')
->options(['aria-label' => Yii::t('base', 'Search')])
->submit() ?>

<?php ActiveForm::end() ?>
7 changes: 6 additions & 1 deletion widgets/views/wikiSidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
<div class="wiki-page-content-header clearfix">
<div class="d-flex align-items-end gap-3 py-2">
<h3 class="m-0 p-0"><?= Link::to($settings->module_label, Url::toLastEdited($contentContainer)) ?></h3>
<?= Button::accent()->icon('fa-plus')->link(Url::toWikiCreate($contentContainer))->cssClass('btn-add-page my-1')->sm() ?>
<?= Button::accent()
->icon('plus')
->options(['aria-label' => Yii::t('WikiModule.base', 'Create page')])
->link(Url::toWikiCreate($contentContainer))
->cssClass('btn-add-page my-1')
->sm() ?>
</div>
<?= WikiSearchForm::widget(['contentContainer' => $contentContainer]) ?>
<div class="wiki-page-content-header-actions">
Expand Down
Loading