Skip to content

Commit

Permalink
Issue #261: Remove class "button--small" on column edit pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lkmorlan committed Dec 19, 2023
1 parent 1d79f8f commit 903f32f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions html/themes/custom/dc_theme/dc_theme.theme
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ function dc_theme_preprocess_input__submit(array &$variables): void {
}
}

/**
* Implements hook_preprocess_HOOK() for input--submit--paragraph-action.html.twig.
*/
function dc_theme_preprocess_input__submit__paragraph_action(array &$variables): void {
// Remove class "button--small" on column edit pages.
if (isset($variables['attributes']['class'])) {
$key = array_search('button--small', $variables['attributes']['class'], TRUE);
unset($variables['attributes']['class'][$key]);
}
}

/**
* Implements hook_preprocess_HOOK() for node--data-set.html.twig.
*/
Expand Down

0 comments on commit 903f32f

Please sign in to comment.