diff --git a/core/modules/filter/css/filter.admin.css b/core/modules/filter/css/filter.admin.css index f766597..b67a86a 100644 --- a/core/modules/filter/css/filter.admin.css +++ b/core/modules/filter/css/filter.admin.css @@ -79,7 +79,3 @@ [dir="rtl"] .tips { padding-right: 0; } - -.fallback-filter-format-roles-description { - font-style: italic; -} diff --git a/core/modules/filter/src/FilterFormatListBuilder.php b/core/modules/filter/src/FilterFormatListBuilder.php index 4844448..f84558e 100644 --- a/core/modules/filter/src/FilterFormatListBuilder.php +++ b/core/modules/filter/src/FilterFormatListBuilder.php @@ -105,7 +105,10 @@ public function buildRow(EntityInterface $entity) { else { $roles_markup = $this->t('This format is shown when no other formats are available'); } - $row['roles']['#wrapper_attributes']['class'][] = 'fallback-filter-format-roles-description'; + // Emphasize the fallback roles text since it is not a role and is + // important to understand when configuring filter formats. + $row['roles']['#prefix'] = ''; + $row['roles']['#suffix'] = ''; } else { $roles = array_map('\Drupal\Component\Utility\SafeMarkup::checkPlain', filter_get_roles_by_format($entity)); @@ -141,7 +144,6 @@ public function getDefaultOperations(EntityInterface $entity) { public function buildForm(array $form, FormStateInterface $form_state) { $form = parent::buildForm($form, $form_state); $form['actions']['submit']['#value'] = $this->t('Save changes'); - $form['#attached']['library'][] = 'filter/drupal.filter.admin'; return $form; }