Skip to content

Commit

Permalink
[4.1] accessibility plugin update and fixes
Browse files Browse the repository at this point in the history
joomla#36948 changed the icons in the accessibility from the google material font (because :privacy :facepalm) to use emojis.

At the time this also resolved a bug in the upstream code that prevented the material font working on osx

Upstream has now resolved the osx problem.

This PR updates to the latest release of the script and introduces the ability to use either emoji or material icons. The default is emoji so there is no visible change etc on upgrade and no need for an update sql
  • Loading branch information
brianteeman committed Jun 8, 2022
1 parent 74a99fa commit 2bb1a09
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
3 changes: 3 additions & 0 deletions administrator/language/en-GB/plg_system_accessibility.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ PLG_SYSTEM_ACCESSIBILITY_CLOSE="Close"
PLG_SYSTEM_ACCESSIBILITY_CURSOR="Big Cursor"
PLG_SYSTEM_ACCESSIBILITY_DECREASE_SPACING="Decrease Text Spacing"
PLG_SYSTEM_ACCESSIBILITY_DECREASE_TEXT="Decrease Text Size"
PLG_SYSTEM_ACCESSIBILITY_EMOJIS="Icons"
PLG_SYSTEM_ACCESSIBILITY_EMOJIS_FALSE="Use Google Material Font"
PLG_SYSTEM_ACCESSIBILITY_EMOJIS_TRUE="Use Emojis"
PLG_SYSTEM_ACCESSIBILITY_GREY="Grey Hues"
PLG_SYSTEM_ACCESSIBILITY_INCREASE_SPACING="Increase Text Spacing"
PLG_SYSTEM_ACCESSIBILITY_INCREASE_TEXT="Increase Text Size"
Expand Down
17 changes: 6 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/system/accessibility/accessibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function onBeforeCompileHead()
'units' => 'px',
],
],
'useEmojis' => true,
'useEmojis' => $this->params->get('useEmojis') != "false" ? true : false,
],
'hotkeys' => [
'enabled' => true,
Expand Down
10 changes: 10 additions & 0 deletions plugins/system/accessibility/accessibility.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@
<option value="administrator">PLG_SYSTEM_ACCESSIBILITY_SECTION_ADMIN</option>
<option value="both">PLG_SYSTEM_ACCESSIBILITY_SECTION_BOTH</option>
</field>
<field
name="useEmojis"
type="list"
label="PLG_SYSTEM_ACCESSIBILITY_EMOJIS"
default="true"
validate="options"
>
<option value="true">PLG_SYSTEM_ACCESSIBILITY_EMOJIS_TRUE</option>
<option value="true">PLG_SYSTEM_ACCESSIBILITY_EMOJIS_FALSE</option>
</field>
</fieldset>
</fields>
</config>
Expand Down

0 comments on commit 2bb1a09

Please sign in to comment.