Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Pleroma
pleroma-fe
Merge requests
!1793
Give tab switcher a role
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Give tab switcher a role
tusooa/tab-aria
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
tusooa
requested to merge
tusooa/tab-aria
into
develop
2 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Changes
Give tab switcher a role
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
1a852b96
1 commit,
2 years ago
1 file
+
7
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/components/tab_switcher/tab_switcher.jsx
+
7
−
1
Options
@@ -117,6 +117,7 @@ export default {
onClick
=
{
this
.
clickTab
(
index
)
}
class
=
{
classesTab
.
join
(
'
'
)
}
type
=
"button"
role
=
"tab"
>
<
img
src
=
{
props
.
image
}
title
=
{
props
[
'
image-tooltip
'
]
}
/>
{
props
.
label
?
''
:
props
.
label
}
@@ -131,6 +132,7 @@ export default {
onClick
=
{
this
.
clickTab
(
index
)
}
class
=
{
classesTab
.
join
(
'
'
)
}
type
=
"button"
role
=
"tab"
>
{
!
props
.
icon
?
''
:
(<
FAIcon
class
=
"tab-icon"
size
=
"2x"
fixed-width
icon
=
{
props
.
icon
}
/>)
}
<
span
class
=
"text"
>
@@ -167,11 +169,15 @@ export default {
return
(
<
div
class
=
{
'
tab-switcher
'
+
(
this
.
sideTabBar
?
'
side-tabs
'
:
'
top-tabs
'
)
}
>
<
div
class
=
"tabs"
>
<
div
class
=
"tabs"
role
=
"tablist"
>
{
tabs
}
</
div
>
<
div
ref
=
"contents"
role
=
"tabpanel"
class
=
{
'
contents
'
+
(
this
.
scrollableTabs
?
'
scrollable-tabs
'
:
''
)
}
v-body-scroll-lock
=
{
this
.
bodyScrollLock
}
>
Loading