Remove duplication of prose classes

This commit is contained in:
Oliver Davies 2025-07-15 23:09:00 +01:00
parent 2b58a18507
commit b13d4d64b1
13 changed files with 23 additions and 14 deletions

View file

@ -6,6 +6,7 @@ namespace Drupal\opd_daily_emails\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Site\Settings;
final class KitSubscriptionForm extends FormBase {
@ -26,7 +27,7 @@ final class KitSubscriptionForm extends FormBase {
'#type' => 'html_tag',
'#tag' => 'div',
'#attributes' => [
'class' => 'prose prose-p:text-black prose-a:font-light prose-a:text-blue-primary prose-p:text-lg prose-blockquote:border-blue-primary dark:marker:text-white prose-li:my-1 prose-li:text-lg prose-figcaption:text-white prose-li:text-black marker:text-black dark:prose-p:text-white dark:prose-invert dark:prose-a:text-blue-400 dark:prose-blockquote:border-blue-400 dark:prose-li:text-white prose-a:hover:no-underline prose-h2:text-xl prose-code:font-normal prose-h2:mb-4 prose-ul:my-3 dark:prose-hr:border-neutral-400 prose-code:before:content-[\'\'] prose-code:after:content-[\'\'] prose-pre:bg-neutral-100 prose-pre:text-black prose-pre:rounded-none prose-code:bg-neutral-100',
'class' => Settings::get('prose_classes'),
'style' => 'margin-bottom: 1rem;',
],
];