Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_wcms_gesso
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_wcms_gesso
Commits
07e511f6
Commit
07e511f6
authored
3 years ago
by
Eric Bremner
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4704: fixing tabs and adding class for tabs modifier
parent
79eb3e2f
No related branches found
No related tags found
1 merge request
!66
ISTWCMS-4704: adding date component with ability to handle multiple dates and...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/_patterns/04-components/tabs/_tabs.twig
+3
-3
3 additions, 3 deletions
source/_patterns/04-components/tabs/_tabs.twig
source/_patterns/04-components/tabs/tabs--link/tabs--link.twig
+1
-0
1 addition, 0 deletions
...e/_patterns/04-components/tabs/tabs--link/tabs--link.twig
with
4 additions
and
3 deletions
source/_patterns/04-components/tabs/_tabs.twig
+
3
−
3
View file @
07e511f6
<div
class=
"uw-tabs"
>
<div
class=
"uw-tabs
{%
if
tabs_modifier_class
%}
{{
tabs_modifier_class
}}{%
endif
%}
"
>
<div
class=
"uw-tab"
role=
"tablist"
aria-label=
"Multi-tab-list"
>
{%
for
type
in
content_list
%}
{%
if
tab_type
==
"link"
%}
<a
href=
"
{{
type.url
}}
"
class=
"uw-tablinks
{{
button_modifier_classes
}}
{%
if
type.active
%}
active
{%
endif
%}
%}"
>
{{
type.text
}}
</a>
<a
href=
"
{{
type.url
}}
"
class=
"uw-tablinks
{{
button_modifier_classes
}}{%
if
type.active
%}
active
{%
endif
%}
"
>
{{
type.text
}}
</a>
{%
else
%}
<button
role=
"tab"
class=
"uw-tablinks
{{
button_modifier_classes
}}
"
{%
if
loop.index
==
1
%}
aria-selected=
"true"
{%
else
%}
aria-selected=
"false"
{%
endif
%}
aria-controls=
"
{{
type
}}
"
id=
"tab-
{{
loop.index
}}
"
tabindex=
"0"
>
{{
type
}}
</button>
<button
role=
"tab"
class=
"uw-tablinks
{{
button_modifier_classes
}}
"
{%
if
loop.index
==
1
%}
aria-selected=
"true"
{%
else
%}
aria-selected=
"false"
{%
endif
%}
aria-controls=
"
{{
type
}}
"
id=
"tab-
{{
loop.index
}}
"
tabindex=
"0"
>
{{
type
}}
</button>
{%
endif
%}
{%
endfor
%}
</div>
...
...
This diff is collapsed.
Click to expand it.
source/_patterns/04-components/tabs/tabs--link/tabs--link.twig
+
1
−
0
View file @
07e511f6
...
...
@@ -6,4 +6,5 @@
tab_type
:
'link'
,
content_list
:
content_list
,
button_modifier_classes
:
button_modifier_classes
,
tabs_modifier_class
:
tabs_modifier_class
,
}
%}
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