Update Jooa11y with latest Sa11y build#42768
Update Jooa11y with latest Sa11y build#42768adamchaboryk wants to merge 15 commits intojoomla:5.1-devfrom
Conversation
Work in progress
Account for empty values
|
Thanks for this work @adamchaboryk To those that don't know Adam is the creator of sa11y. We originally made a hard fork for the reasons stated here joomla-projects/joomla-a11y-checker#75 but it is not really needed now. The only major consideration for the Production Dept and maintainers is that the language strings are now provided by sa11y and not by Joomla. But thats no different to how the tinymce translations are done now. (this will probably necessitate an update/uninstall script.) |
Thanks @brianteeman! I'm looking forward to future contributions — I'll ensure new translations make its way into Joomla! |
|
Hi Adam, thanks for the PR .
The manual lives here https://github.com/joomla/Manual |
|
In Joomla we do not mix PHP with JavaScript code, it is forbiden 😉 Since Joomla 5 we can use ESM importmap, basicaly it is a WebAsset with special property https://manual.joomla.org/docs/general-concepts/web-asset-manager#working-with-esm-importmap |
|
I have wrote a couple notes, I hope I did not forget anything :) Another thing looks strange is If you want just a key/value, you can use a <field type="subform" name="extraProps" multiple="true" label="foobar label">
<form>
<field type="text" name="key" label="Key"/>
<field type="text" name="value" label="Value"/>
</form>
</field>If just a key/bool, then: <field type="subform" name="extraProps" multiple="true" label="foobar label">
<form>
<field type="text" name="key" label="Key"/>
<field type="radio" name="value" label="Value" default="1" layout="joomla.form.field.radio.switcher">
<option value="0">JOFF</option>
<option value="1">JON</option>
</field>
</form>
</field>Then you do not need that complex |
|
One more thing, please rebase it to |
|
Thank you for the detailed feedback, @Fedik! I attempted (my first) re-base, and I don't think it went very smoothly... My apologies — I did not mean to send out multiple review requests. |
Summary of Changes
This PR adds Sa11y as a dependency, ensuring seamless and automatic updates for future Joomla releases.
build/build-modules-js/settings.json.build/build-modules-js/settings.json.Related issue: joomla-projects/joomla-a11y-checker#75
Testing Instructions
npm installActual result BEFORE applying this Pull Request
https://joomla-projects.github.io/joomla-a11y-checker/pages/errors.html
Expected result AFTER applying this Pull Request
Editor preview
Plugin settings
Link to documentations
Please select:
Is this page (https://manual.joomla.org/docs/accessibility/testing) something I can help update?