Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ui_suite_bootstrap
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
ui_suite_bootstrap
Commits
756faa24
Commit
756faa24
authored
2 years ago
by
Florent Torregrosa
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3358650
by Grimreaper, pdureau: Pattern: list group missing variants
parent
b6104790
No related branches found
No related tags found
1 merge request
!86
Issue #3358650: Pattern: list group missing variants
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/patterns/list_group/list_group.ui_patterns.yml
+18
-0
18 additions, 0 deletions
templates/patterns/list_group/list_group.ui_patterns.yml
templates/patterns/list_group/pattern-list-group.html.twig
+2
-1
2 additions, 1 deletion
templates/patterns/list_group/pattern-list-group.html.twig
with
20 additions
and
1 deletion
templates/patterns/list_group/list_group.ui_patterns.yml
+
18
−
0
View file @
756faa24
...
...
@@ -30,6 +30,24 @@ list_group:
horizontal_xxl
:
label
:
"
Horizontal
Extra
extra
large"
description
:
"
Horizontal
starts
at
breakpoint
extra
extra
large."
numbered__horizontal
:
label
:
"
Numbered
Horizontal"
description
:
"
Add
the
.list-group-numbered
modifier
class
(and
optionally
use
an
<ol>
element)
to
opt
into
numbered
list
group
items.
Add
.list-group-horizontal
to
change
the
layout
of
list
group
items
from
vertical
to
horizontal
across
all
breakpoints.
Currently
horizontal
list
groups
cannot
be
combined
with
flush
list
groups."
numbered__horizontal_sm
:
label
:
"
Numbered
Horizontal
Small"
description
:
"
Horizontal
starts
at
breakpoint
small."
numbered__horizontal_md
:
label
:
"
Numbered
Horizontal
Medium"
description
:
"
Horizontal
starts
at
breakpoint
medium."
numbered__horizontal_lg
:
label
:
"
Numbered
Horizontal
Large"
description
:
"
Horizontal
starts
at
breakpoint
large."
numbered__horizontal_xl
:
label
:
"
Numbered
Horizontal
Extra
large"
description
:
"
Horizontal
starts
at
breakpoint
extra
large."
numbered__horizontal_xxl
:
label
:
"
Numbered
Horizontal
Extra
extra
large"
description
:
"
Horizontal
starts
at
breakpoint
extra
extra
large."
fields
:
items
:
type
:
"
render"
...
...
This diff is collapsed.
Click to expand it.
templates/patterns/list_group/pattern-list-group.html.twig
+
2
−
1
View file @
756faa24
{%
if
variant
and
variant
|
lower
!=
'default'
%}
{%
set
attributes
=
attributes.addClass
(
'list-group-'
~
variant
|
lower
|
replace
(
{
'_'
:
'-'
}
))
%}
{%
set
variants
=
variant
|
split
(
'__'
)
|
map
(
v
=>
v
|
lower
|
replace
(
{
(
v
)
:
'list-group-'
~
v
}
)
|
replace
(
{
'_'
:
'-'
}
))
%}
{%
set
attributes
=
attributes.addClass
(
variants
)
%}
{%
endif
%}
<div
{{
attributes.addClass
(
'list-group'
)
}}
>
...
...
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