From 7bc0d54af18e494ec6a8cd416bdcdd536a01a80d Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Tue, 5 Aug 2025 22:00:55 +0100 Subject: [PATCH 01/11] Readme: Swapped codeclimate reference for custom phpmetrics --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index b5470af57..d5c1a6010 100644 --- a/readme.md +++ b/readme.md @@ -5,7 +5,7 @@ [![Crowdin](https://badges.crowdin.net/bookstack/localized.svg)](https://crowdin.com/project/bookstack) [![Build Status](https://github.com/BookStackApp/BookStack/workflows/test-php/badge.svg)](https://github.com/BookStackApp/BookStack/actions) [![Lint Status](https://github.com/BookStackApp/BookStack/workflows/lint-php/badge.svg)](https://github.com/BookStackApp/BookStack/actions) -[![Maintainability](https://api.codeclimate.com/v1/badges/5551731994dd22fa1f4f/maintainability)](https://codeclimate.com/github/BookStackApp/BookStack/maintainability) +[![php-metrics](https://img.shields.io/static/v1?label=Metrics&message=php&color=4F5B93)](https://source.bookstackapp.com/php-stats/index.html)
[![Alternate Source](https://img.shields.io/static/v1?label=Alt+Source&message=Git&color=ef391a&logo=git)](https://source.bookstackapp.com/) [![Repo Stats](https://img.shields.io/static/v1?label=GitHub+project&message=stats&color=f27e3f)](https://gh-stats.bookstackapp.com/) From c66f3b2a3754db0543e996e533554772b6a8b50a Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Thu, 7 Aug 2025 14:32:20 +0100 Subject: [PATCH 02/11] A11y: Improved tagging of profile menu - Swapped toggle out to actual button. - Ensured menu items have proper menu item role. - Added extra roles/labels where is makes sense. --- resources/sass/_header.scss | 1 + .../views/common/dark-mode-toggle.blade.php | 4 +-- .../layouts/parts/header-user-menu.blade.php | 32 ++++++++++++------- 3 files changed, 24 insertions(+), 13 deletions(-) diff --git a/resources/sass/_header.scss b/resources/sass/_header.scss index 3ec7275a4..a23f92d3f 100644 --- a/resources/sass/_header.scss +++ b/resources/sass/_header.scss @@ -65,6 +65,7 @@ header { margin: 0 (-(vars.$s)); border-radius: 3px; gap: vars.$xs; + color: #FFF; > span { padding-inline-start: vars.$xs; display: inline-block; diff --git a/resources/views/common/dark-mode-toggle.blade.php b/resources/views/common/dark-mode-toggle.blade.php index 531755109..384932519 100644 --- a/resources/views/common/dark-mode-toggle.blade.php +++ b/resources/views/common/dark-mode-toggle.blade.php @@ -3,8 +3,8 @@ {{ method_field('patch') }} @if(setting()->getForCurrentUser('dark-mode-enabled')) - + @else - + @endif \ No newline at end of file diff --git a/resources/views/layouts/parts/header-user-menu.blade.php b/resources/views/layouts/parts/header-user-menu.blade.php index db4820a4d..c252deb82 100644 --- a/resources/views/layouts/parts/header-user-menu.blade.php +++ b/resources/views/layouts/parts/header-user-menu.blade.php @@ -1,33 +1,43 @@ - +
@@ -34,8 +34,8 @@ @foreach($languages as $language)
- - + +
@endforeach
diff --git a/resources/views/pages/parts/editor-toolbar.blade.php b/resources/views/pages/parts/editor-toolbar.blade.php index 2dfbe9e69..ceb5dd64a 100644 --- a/resources/views/pages/parts/editor-toolbar.blade.php +++ b/resources/views/pages/parts/editor-toolbar.blade.php @@ -14,7 +14,7 @@