diff --git a/core/lib/Drupal/Core/Theme/AjaxBasePageNegotiator.php b/core/lib/Drupal/Core/Theme/AjaxBasePageNegotiator.php index 261cedf..a012741 100644 --- a/core/lib/Drupal/Core/Theme/AjaxBasePageNegotiator.php +++ b/core/lib/Drupal/Core/Theme/AjaxBasePageNegotiator.php @@ -67,17 +67,14 @@ public function __construct(CsrfTokenGenerator $token_generator, ConfigFactoryIn * {@inheritdoc} */ public function applies(RouteMatchInterface $route_match) { - // Check whether the route was configured to use the base page theme. - return ($route = $route_match->getRouteObject()) - && $route->hasOption('_theme') - && $route->getOption('_theme') == 'ajax_base_page'; + return ($ajax_page_state = $this->requestStack->getCurrentRequest()->request->get('ajax_page_state')) && !empty($ajax_page_state['theme']) && isset($ajax_page_state['theme_token']); } /** * {@inheritdoc} */ public function determineActiveTheme(RouteMatchInterface $route_match) { - if (($ajax_page_state = $this->requestStack->getCurrentRequest()->request->get('ajax_page_state')) && !empty($ajax_page_state['theme']) && !empty($ajax_page_state['theme_token'])) { + if ($ajax_page_state = $this->requestStack->getCurrentRequest()->request->get('ajax_page_state')) { $theme = $ajax_page_state['theme']; $token = $ajax_page_state['theme_token']; diff --git a/core/themes/bartik/css/components/vertical-tabs.component.css b/core/themes/bartik/css/components/vertical-tabs.component.css index b89b43a..ce4d6cd 100644 --- a/core/themes/bartik/css/components/vertical-tabs.component.css +++ b/core/themes/bartik/css/components/vertical-tabs.component.css @@ -14,8 +14,3 @@ /* This is required to win specificity over [dir="rtl"] .region-content ul */ padding: 0; } - -/* Fix vertical tabs rendered in a dialog from the main theme. */ -.ui-dialog .vertical-tabs__menu li { - left: 230px; -}