Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Merge requests
!3071
Issue
#2852724
: Machine-name field is not effectively hidden from keyboard and screen reader users.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Issue
#2852724
: Machine-name field is not effectively hidden from keyboard and screen reader users.
issue/drupal-2852724:2852724-machine-name-field-is
into
10.1.x
Overview
0
Commits
2
Pipelines
0
Changes
3
Closed
Vladimir Roudakov
requested to merge
issue/drupal-2852724:2852724-machine-name-field-is
into
10.1.x
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Compare
10.1.x
version 5
351a8d5b
2 years ago
version 4
29aead84
2 years ago
version 3
cd046e64
2 years ago
version 2
2180dc7d
2 years ago
version 1
a3c6e47f
2 years ago
10.1.x (base)
and
latest version
latest version
c11c4abd
2 commits,
2 years ago
version 5
351a8d5b
2 commits,
2 years ago
version 4
29aead84
2 commits,
2 years ago
version 3
cd046e64
2 commits,
2 years ago
version 2
2180dc7d
3 commits,
2 years ago
version 1
a3c6e47f
1 commit,
2 years ago
3 files
+
12
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
core/misc/machine-name.js
+
5
−
5
Options
@@ -46,7 +46,7 @@
function
clickEditHandler
(
e
)
{
const
data
=
e
.
data
;
data
.
$wrapper
.
removeClass
(
'
visually-
hidden
'
);
data
.
$wrapper
.
removeClass
(
'
hidden
'
);
data
.
$target
.
trigger
(
'
focus
'
);
data
.
$suffix
.
hide
();
data
.
$source
.
off
(
'
.machineName
'
);
@@ -117,7 +117,7 @@
// Figure out the maximum length for the machine name.
options
.
maxlength
=
$target
.
attr
(
'
maxlength
'
);
// Hide the form item container of the machine name form element.
$wrapper
.
addClass
(
'
visually-
hidden
'
);
$wrapper
.
addClass
(
'
hidden
'
);
// Initial machine name from the target field default value.
const
machine
=
$target
[
0
].
value
;
// Append the machine name preview to the source field.
@@ -161,9 +161,9 @@
// If it is editable, append an edit link.
const
$link
=
$
(
`
<span class="admin-link"><button type="button" class="link"
>
${
Drupal
.
t
(
'
Edit
'
,
)}
</button></span>
`
,
'
<span class="admin-link"><button type="button" class="link"
aria-label="
'
.
concat
(
Drupal
.
t
(
'
Edit machine name
'
),
'
">
'
)
.
concat
(
Drupal
.
t
(
'
Edit
'
),
'
</button></span>
'
)
,
).
on
(
'
click
'
,
eventData
,
clickEditHandler
);
$suffix
.
append
(
$link
);
Loading