From: Guillaume AGNIERAY Date: Sun, 5 Nov 2023 15:46:43 +0000 (+0100) Subject: Some slight accessibility related improvements X-Git-Tag: 1.0.0rc3~51 X-Git-Url: https://git.agnieray.net/?a=commitdiff_plain;h=fdbbe0f395d9b7fcb27d7855f884ac5a2597e889;p=galette.git Some slight accessibility related improvements refs #1735 Don't use yellow icon links Increase contrast on footer links Increase contrast on menu Increase contrast on primary button Increase contrast globally Replace orange buttons with blue ones Add aria-hidden attribute on icons when missing Clean old assets Increase contrast on messages Use colored buttons on install --- diff --git a/galette/install/no.gif b/galette/install/no.gif deleted file mode 100644 index 1182ca801..000000000 Binary files a/galette/install/no.gif and /dev/null differ diff --git a/galette/install/no.png b/galette/install/no.png deleted file mode 100644 index b3d6646b2..000000000 Binary files a/galette/install/no.png and /dev/null differ diff --git a/galette/install/steps/admin.php b/galette/install/steps/admin.php index 85637f761..38d1f420c 100644 --- a/galette/install/steps/admin.php +++ b/galette/install/steps/admin.php @@ -56,7 +56,7 @@ use Galette\Core\Db as GaletteDb;
- +
diff --git a/galette/install/steps/check.php b/galette/install/steps/check.php index 5500f6b6e..87f6d4eda 100644 --- a/galette/install/steps/check.php +++ b/galette/install/steps/check.php @@ -159,13 +159,13 @@ if (!$perms_ok) { if (!$perms_ok || !$modules_ok || !$php_ok || !$date_ok) { ?>
- +
- +
isUpgrade()) {
- +
- +
diff --git a/galette/install/steps/db_checks.php b/galette/install/steps/db_checks.php index 67fd870a2..665faa2ef 100644 --- a/galette/install/steps/db_checks.php +++ b/galette/install/steps/db_checks.php @@ -252,7 +252,7 @@ if (!isset($install_plugin)) {
- + @@ -263,7 +263,7 @@ if ($conndb_ok && $permsdb_ok) { ?>
- +
diff --git a/galette/install/steps/db_install.php b/galette/install/steps/db_install.php index 4aed8d1e5..97ea13af0 100644 --- a/galette/install/steps/db_install.php +++ b/galette/install/steps/db_install.php @@ -75,11 +75,11 @@ foreach ($install->getDbInstallReport() as $r) { - + - + @@ -93,7 +93,7 @@ if (!$db_installed) { //once DB is installed, that does not make sense to go back ?>
- +
"/> - +
- +
- +
- +
diff --git a/galette/install/steps/end.php b/galette/install/steps/end.php index 99241a6f0..fab3a677e 100644 --- a/galette/install/steps/end.php +++ b/galette/install/steps/end.php @@ -55,7 +55,7 @@ if ($install->isUpgrade()) {
- +
diff --git a/galette/install/steps/galette.php b/galette/install/steps/galette.php index d4be05b59..d0b95ec85 100644 --- a/galette/install/steps/galette.php +++ b/galette/install/steps/galette.php @@ -74,11 +74,11 @@ foreach ($install->getInitializationReport() as $r) { - + - + @@ -92,7 +92,7 @@ if (!$config_file_ok || !$objects_ok) { //once DB is installed, that does not make sense to go back ?>
- +
isRegistered()) { ?>
- " target="_blank"> - + " target="_blank"> +
@@ -66,7 +66,7 @@ if (!$telemetry->isRegistered()) { } ?> -
+

anonymous; nothing about your organization or its members will be sent."); ?>

HTTPS secured connection."); ?> @@ -79,7 +79,7 @@ if (!$telemetry->isRegistered()) {

- +
diff --git a/galette/install/steps/type.php b/galette/install/steps/type.php index ff3e12189..0951fd0e7 100644 --- a/galette/install/steps/type.php +++ b/galette/install/steps/type.php @@ -66,10 +66,10 @@ use Galette\Core\Install as GaletteInstall;
- +
- +
diff --git a/galette/install/yes.gif b/galette/install/yes.gif deleted file mode 100644 index 24a3a8820..000000000 Binary files a/galette/install/yes.gif and /dev/null differ diff --git a/galette/install/yes.png b/galette/install/yes.png deleted file mode 100644 index a500d7de4..000000000 Binary files a/galette/install/yes.png and /dev/null differ diff --git a/galette/lib/Galette/Core/CheckModules.php b/galette/lib/Galette/Core/CheckModules.php index 73985c30d..770d7abce 100644 --- a/galette/lib/Galette/Core/CheckModules.php +++ b/galette/lib/Galette/Core/CheckModules.php @@ -138,7 +138,7 @@ class CheckModules if (count($this->missing) > 0) { $ko = ($translated ? _T('Ko') : 'Ko'); foreach ($this->missing as $m) { - $html .= '
  • ' . $m . '' . + $html .= '
  • ' . $m . '' . $ko . '
  • '; } } @@ -146,14 +146,14 @@ class CheckModules if (count($this->good) > 0) { $ok = ($translated ? _T('Ok') : 'Ok'); foreach ($this->good as $m) { - $html .= '
  • ' . $m . '' . + $html .= '
  • ' . $m . '' . $ok . '
  • '; } } if (count($this->should) > 0) { foreach ($this->should as $m) { - $html .= '
  • ' . $m . '
  • '; + $html .= '
  • ' . $m . '
  • '; } } diff --git a/galette/lib/Galette/Core/Galette.php b/galette/lib/Galette/Core/Galette.php index 38234cb6f..c8dbb0000 100644 --- a/galette/lib/Galette/Core/Galette.php +++ b/galette/lib/Galette/Core/Galette.php @@ -743,7 +743,7 @@ class Galette 'value' => $member->id ] ], - 'icon' => 'receipt yellow' + 'icon' => 'receipt green' ], [ 'label' => str_replace( @@ -870,7 +870,7 @@ class Galette [ 'name' => 'masscontributions', 'label' => _T('Mass add contributions'), - 'icon' => 'receipt bite yellow' + 'icon' => 'receipt bite green' ], [ 'name' => 'delete', diff --git a/galette/lib/Galette/Core/Install.php b/galette/lib/Galette/Core/Install.php index 7bb2420d3..9334d2c24 100644 --- a/galette/lib/Galette/Core/Install.php +++ b/galette/lib/Galette/Core/Install.php @@ -168,7 +168,7 @@ class Install { $img_name = ($arg === true) ? 'green check' : 'red times'; $alt = ($arg === true) ? _T("Ok") : _T("Ko"); - $img = '' . $alt . ''; + $img = '' . $alt . ''; return $img; } diff --git a/galette/templates/default/components/dynamic_fields.html.twig b/galette/templates/default/components/dynamic_fields.html.twig index 1ae06ae0e..43589910b 100644 --- a/galette/templates/default/components/dynamic_fields.html.twig +++ b/galette/templates/default/components/dynamic_fields.html.twig @@ -54,7 +54,7 @@ {% elseif get_class(field) == 'Galette\\DynamicFields\\Date' %}
    - + {{ valuedata }} - + {% endif %}
    @@ -94,7 +94,7 @@ {% if disabled %} disabled="disabled"{% endif %} />
    @@ -119,7 +119,7 @@
    - + {{ _T("Additionnal fields:") }}
    @@ -185,7 +185,7 @@ {% if not masschange %}