Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XWIKI-21523: Fields in form of WYSIWYG configuration are not accessible #2581

Merged
merged 4 commits into from
Feb 29, 2024

Conversation

Sereza7
Copy link
Contributor

@Sereza7 Sereza7 commented Nov 6, 2023

Jira

https://jira.xwiki.org/browse/XWIKI-21523

PR Changes

  • Added labels for the three elements in the form that failed because no accessible name.

View

21523-afterPR

We can see that this PR properly adds the relation between the label and the field (here, only the 'advanced' textarea field is showcased).

* Added labels for the three elements in the form that failed because no accessible name.
@@ -218,15 +218,19 @@ require(['jquery', 'xwiki-ckeditor', 'bootstrap-select'], function($, ckeditorPr
var commaSeparator = /\s*,\s*/;
var enhanceConfig = function(editor) {
var availablePlugins = editor.config.plugins.split(commaSeparator);
enhanceList($('#CKEditor\\.ConfigClass_0_removePlugins'), availablePlugins);
enhanceList($('#CKEditor\\.ConfigClass_0_removePlugins'), availablePlugins, 'availablepluginsselect');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not aware of any naming convention for ids, but I think it would be nice to use at least some way to differentiate words like camelCase.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. I don't know of one either.
When checking the string id=" in the codebase, it prompted a lot of things, but the most regularly used convention for IDs was camelCase.

I created a forum proposal to add a HTML codestyle appropriate for this situation: https://forum.xwiki.org/t/html-codestyle-proposal-conventions-for-ids-and-classes/13619

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in fb28aae 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So apparently the proposal went for the kebab-case for ids so I guess you need to fix that now :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 8599be3 👍

@surli surli merged commit 7f00103 into xwiki:master Feb 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants