Skip to content
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

A11y fix logical keyboard order #5982

Closed
wants to merge 2 commits into from

Conversation

stevefrenzel
Copy link

Description

Focus certain elements when clicking certain buttons (more detailed info in related issue).

Related Issue

How Has This Been Tested?

  • Works in Chrome, Firefox, Safari and Edge

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • Need help to focus "Bearbeite öffentlichen Link" button. Problem: Focus only works on svgelement inside of OcIcon component, not sure how to target it. Also focussing via focus() method won't trigger the tooltip.
  • Need help to focus "Neu" button. Problem: Focussing it with document.getElementById('new-file-menu-btn').focus()doesn't have any effect, althoug document.getElementById('new-file-menu-btn').click() is working.

@stevefrenzel stevefrenzel requested a review from fschade as a code owner November 5, 2021 11:14
@stevefrenzel stevefrenzel self-assigned this Nov 5, 2021
@kulmann kulmann changed the base branch from master to a11y-updates November 5, 2021 11:17
@@ -9,7 +9,7 @@
class="oc-files-file-link-edit oc-mr-xs"
@click="editLink"
>
<oc-icon name="edit" />
<oc-icon id="editButtonLabel" name="edit" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Id is not unique, since this component exists once per link row. You need to add a unique qualifier to the id dynamically (e.g. the share id).

focusDatepicker() {
this.expireDate = null
this.$nextTick(() => {
console.log('DATEPICKER: ', this.$refs.datepicker)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dev leftover?

@pascalwengerter
Copy link
Contributor

Some parts were fixed in my recent commints on #5512, the rest will be taken care of by @kulmann. Closing this as outdated, thanks for the effort!

@pascalwengerter pascalwengerter deleted the a11y-fix-logical-keyboard-order branch January 27, 2022 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants