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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!3071
An error occurred while fetching the assigned milestone of the selected merge_request.
Issue
#2852724
: Machine-name field is not effectively hidden from keyboard and screen reader users.
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
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
Issue #2852724: Machine-name field is not effectively hidden from keyboard and screen reader users.
Vladimir Roudakov
requested to merge
issue/drupal-2852724:2852724-machine-name-field-is
into
10.1.x
Dec 5, 2022
Overview
0
Commits
2
Pipelines
0
Changes
3
0
0
Merge request reports
Compare
10.1.x
version 5
351a8d5b
Jan 22, 2023
version 4
29aead84
Dec 16, 2022
version 3
cd046e64
Dec 7, 2022
version 2
2180dc7d
Dec 6, 2022
version 1
a3c6e47f
Dec 5, 2022
10.1.x (base)
and
latest version
latest version
c11c4abd
2 commits,
Mar 3, 2023
version 5
351a8d5b
2 commits,
Jan 22, 2023
version 4
29aead84
2 commits,
Dec 16, 2022
version 3
cd046e64
2 commits,
Dec 7, 2022
version 2
2180dc7d
3 commits,
Dec 6, 2022
version 1
a3c6e47f
1 commit,
Dec 5, 2022
3 files
+
12
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
core/misc/machine-name.js
+
5
−
5
View file @ c11c4abd
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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