Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
idatt2106_2024_03_frontend
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
Model registry
Operate
Environments
Terraform modules
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
Scrum_Team_3
idatt2106_2024_03_frontend
Commits
8ed04848
Commit
8ed04848
authored
10 months ago
by
jensmjahle
Browse files
Options
Downloads
Patches
Plain Diff
Add tabindex to file selector in CreateMilestoneView.vue
parent
dc999d01
No related branches found
No related tags found
1 merge request
!73
Wcag improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/HomePage/CreateMilestoneView.vue
+9
-2
9 additions, 2 deletions
src/views/HomePage/CreateMilestoneView.vue
with
9 additions
and
2 deletions
src/views/HomePage/CreateMilestoneView.vue
+
9
−
2
View file @
8ed04848
...
...
@@ -82,6 +82,13 @@ const handleFileChange = (event: any) => {
}
reader
.
readAsDataURL
(
file
)
}
const
fileInput
=
ref
(
null
);
const
openFileExplorer
=
()
=>
{
if
(
fileInput
.
value
)
{
fileInput
.
value
.
click
();
}
};
</
script
>
...
...
@@ -156,12 +163,12 @@ const handleFileChange = (event: any) => {
<div
class=
"image-container"
>
<label>
Legg til et bilde
</label>
<div
class=
"add-image-box"
>
<
label
>
<
button
@
click=
"openFileExplorer"
tabindex=
"0"
type=
"button"
>
<input
type=
"file"
style=
"display: none"
ref=
"fileInput"
accept=
"image/png, image/jpeg"
@
change=
"handleFileChange"
>
<img
v-if=
"image"
:src=
"image"
id=
"literal-image"
alt=
"Selected Image"
width=
"150px"
height=
"150px"
>
<img
v-else
src=
"../../components/icons/image/AddImage.png"
alt=
"Add Image"
width=
"50px"
height=
"50px"
>
</
label
>
</
button
>
</div>
<!--
<div
class=
"existing-pictures"
>
-->
<!--
<div
class=
"existing-image-box"
></div>
-->
...
...
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