Skip to content
Snippets Groups Projects
Commit 09b9f9bb authored by paul121's avatar paul121
Browse files

Do not return early for standard dropbuttons.

parent 8fb30027
No related branches found
No related tags found
No related merge requests found
......@@ -179,14 +179,8 @@ function gin_preprocess_dropbutton_wrapper(&$variables) {
if (strpos($children, 'dropbutton--small')) {
$default_size = 'small';
}
// "dropbutton--standard" will not add any additional classes.
if (strpos($children, 'dropbutton--standard')) {
$default_size = '';
}
// Don't do anything if dropbutton--standard was supplied.
if (empty($default_size)) {
return;
$default_size = 'standard';
}
$pattern = '/(<ul\sclass\s*= *["\']?)([^"\']*)(.*)(<li)/i';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment