[Entity_browser] Add Gin classes to the Entity Browser modal HTML
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3193673. --> Reported by: [manuel.adan](https://www.drupal.org/user/516420) >>> <p>Entity Browser modal looks like this in darkmode:</p> <p><img src="https://www.drupal.org/files/issues/2021-01-20/gin-entity_browser_modal_html_classes-before.png" width="750" height="628" alt="Entity Browser modal screenshot before patch, white background instead of dark"></p> <p>I found that gin_preprocess_html() is not invoked in that context due <a href="https://git.drupalcode.org/project/drupal/-/blob/9.2.x/core/lib/Drupal/Core/Theme/ThemeManager.php#L247-251">this theme manager logic</a>; if an theme registry item is found for a suggestion, its information is used instead of the info for the main hook.</p> <p>So we need a preprocess implementation for html__entity_browser__modal.</p>
issue