Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
earth-in-flux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Water Mission Area
VizLab
earth-in-flux
Commits
37789867
Commit
37789867
authored
3 months ago
by
Hayley Corson-Dosch
Browse files
Options
Downloads
Patches
Plain Diff
Add aria role and attribute and make keydown event triggered by enter or space
parent
1ca032eb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!79
Fii edits
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/RegionalFiresViz.vue
+8
-6
8 additions, 6 deletions
src/components/RegionalFiresViz.vue
with
8 additions
and
6 deletions
src/components/RegionalFiresViz.vue
+
8
−
6
View file @
37789867
...
...
@@ -300,12 +300,14 @@
// add tab-index selection and keypress events for fire markers
for
(
let
i
=
0
;
i
<
2
;
i
++
)
{
d3
.
select
(
`#source-
${
i
}
`
)
.
attr
(
'
tabindex
'
,
0
)
.
on
(
"
keypress
"
,
function
(
event
)
{
if
(
event
.
key
==
'
Enter
'
){
keypressFire
(
event
)
}
})
.
attr
(
'
tabindex
'
,
0
)
.
attr
(
"
role
"
,
"
button
"
)
.
attr
(
"
aria-label
"
,
i
==
0
?
'
Dennison Fork 2015 wildfire
'
:
'
Steamboat Creek 2016 wildfire
'
)
.
on
(
"
keydown
"
,
function
(
event
)
{
if
(
event
.
code
==
'
Enter
'
|
event
.
code
==
'
Space
'
){
keypressFire
(
event
)
}
})
}
// draw default line
...
...
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