Commit 808eb743 authored by webchick's avatar webchick

Issue #2301953 by er.pushpinderrana | scor: Fixed Update 'element-invisible'...

Issue #2301953 by er.pushpinderrana | scor: Fixed Update 'element-invisible' and 'element-hidden' to valid Drupal 8 CSS classes.
parent 0ae0cdb9
......@@ -215,7 +215,7 @@ public function settingsForm(array $form, array &$form_state, EditorEntity $edit
// because otherwise we cannot retrieve per-feature metadata.
unset($config['allowedContent']);
$form['hidden_ckeditor'] = array(
'#markup' => '<div id="ckeditor-hidden" class="element-hidden"></div>',
'#markup' => '<div id="ckeditor-hidden" class="hidden"></div>',
'#attached' => array(
'js' => array(
array(
......
......@@ -405,7 +405,7 @@
// @see https://drupal.org/node/2029999.
var id = 'quickedit-load-editors';
// Create a temporary element to be able to use Drupal.ajax.
var $el = $('<div id="' + id + '" class="element-hidden"></div>').appendTo('body');
var $el = $('<div id="' + id + '" class="hidden"></div>').appendTo('body');
// Create a Drupal.ajax instance to load the form.
var loadEditorsAjax = new Drupal.ajax(id, $el, {
url: Drupal.url('quickedit/attachments'),
......
......@@ -559,7 +559,7 @@
// Get rid of the explanatory text around the operator; its placement is
// explanatory enough.
this.operator.find('label').add('div.description').addClass('element-invisible');
this.operator.find('label').add('div.description').addClass('visually-hidden');
this.operator.find('select').addClass('form-select');
// Keep a list of the operator dropdowns, so we can sync their behavior later.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment