Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gin-3215918
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
gin-3215918
Commits
10655465
Commit
10655465
authored
4 years ago
by
Sascha Eggenberger
Browse files
Options
Downloads
Patches
Plain Diff
Local action as primary button
parent
bb824bae
No related branches found
Branches containing commit
Tags
7.x-3.0-alpha1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gin.theme
+6
-6
6 additions, 6 deletions
gin.theme
with
6 additions
and
6 deletions
gin.theme
+
6
−
6
View file @
10655465
...
...
@@ -335,12 +335,12 @@ function gin_preprocess_menu(&$variables) {
/**
* Local actions preprocess.
*/
function
gin_preprocess_menu_local_action
(
&
$variables
)
{
$classes
=
&
$variables
[
'link'
][
'#options'
][
'attributes'
][
'class'
];
$classes
=
array_filter
(
$classes
,
function
(
$e
)
{
return
$e
!=
'button--primary'
;
});
}
//
function gin_preprocess_menu_local_action(&$variables) {
//
$classes = &$variables['link']['#options']['attributes']['class'];
//
$classes = array_filter($classes, function ($e) {
//
return $e != 'button--primary';
//
});
//
}
/**
* Implements toolbar preprocess.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment