-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Fixes accessibility behavior for topic management in the repository home view #22631
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,12 @@ export function initRepoTopicBar() { | |
viewDiv.hide(); | ||
editDiv.css('display', ''); // show Semantic UI Grid | ||
}); | ||
mgrBtn.on('keydown', (e) => { | ||
if (e.key === 'Enter' || e.key === ' ') { | ||
viewDiv.hide(); | ||
editDiv.css('display', ''); // show Semantic UI Grid | ||
Comment on lines
16
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could think about extracting the function body (without condition) into a separate method… There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe use a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here is an example about how to use |
||
} | ||
}); | ||
|
||
function getPrompts() { | ||
const hidePrompt = $('div.hide#validate_prompt'); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete topic
?Or is it always clear for users what is supposed to be deleted?