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

feat(accessibility): add tabbing to chart menu in dashboard #26138

Merged
merged 12 commits into from
Apr 8, 2024

Conversation

eschutho
Copy link
Member

@eschutho eschutho commented Nov 29, 2023

SUMMARY

This change adds the ability to tab through elements on a dashboard, the title, charts, and into the chart controls, and execute each of them with a keyboard.

Screen.Recording.2024-02-06.at.5.56.19.PM.mov

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@eschutho eschutho force-pushed the elizabeth/accessibility-tabs branch from 65ad28e to 729d07c Compare December 2, 2023 01:46
Copy link

codecov bot commented Dec 2, 2023

Codecov Report

Attention: Patch coverage is 65.16854% with 31 lines in your changes are missing coverage. Please review.

Project coverage is 69.68%. Comparing base (1d571ec) to head (81efffb).
Report is 3 commits behind head on master.

Files Patch % Lines
...dashboard/components/SliceHeaderControls/index.tsx 68.96% 17 Missing and 1 partial ⚠️
...rontend/src/components/ErrorMessage/ErrorAlert.tsx 28.57% 10 Missing ⚠️
...components/DashboardBuilder/DashboardContainer.tsx 25.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #26138      +/-   ##
==========================================
- Coverage   69.69%   69.68%   -0.01%     
==========================================
  Files        1908     1908              
  Lines       74530    74612      +82     
  Branches     8309     8333      +24     
==========================================
+ Hits        51942    51993      +51     
- Misses      20535    20565      +30     
- Partials     2053     2054       +1     
Flag Coverage Δ
javascript 57.19% <65.16%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eschutho
Copy link
Member Author

eschutho commented Dec 8, 2023

/testenv up

Copy link
Contributor

github-actions bot commented Dec 8, 2023

@eschutho Ephemeral environment spinning up at http://54.213.200.158:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@yousoph
Copy link
Member

yousoph commented Dec 12, 2023

When using keyboard navigation to tab through on a dashboard, the highlight on the chart title in dashboards doesn't seem to be appearing for me

@eschutho eschutho force-pushed the elizabeth/accessibility-tabs branch 2 times, most recently from 85ca7b6 to dfde2cf Compare December 14, 2023 21:42
@eschutho
Copy link
Member Author

/testenv up

Copy link
Contributor

@eschutho Ephemeral environment spinning up at http://54.202.14.64:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@eschutho eschutho force-pushed the elizabeth/accessibility-tabs branch 2 times, most recently from 7b1f0dd to 3da50cc Compare December 21, 2023 01:45
@eschutho
Copy link
Member Author

/testenv up

Copy link
Contributor

@eschutho Ephemeral environment spinning up at http://52.35.108.27:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@eschutho eschutho force-pushed the elizabeth/accessibility-tabs branch from 3da50cc to dbb08a7 Compare January 8, 2024 18:00
@eschutho eschutho force-pushed the elizabeth/accessibility-tabs branch 3 times, most recently from 8d1a78b to 98b9161 Compare January 19, 2024 01:15
@eschutho
Copy link
Member Author

/testenv up

Copy link
Contributor

@eschutho Ephemeral environment spinning up at http://35.87.72.46:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@kasiazjc
Copy link
Contributor

@eschutho Ephemeral environment spinning up at http://35.87.72.46:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

I think this looks good! Thanks @eschutho 🙏

@eschutho eschutho force-pushed the elizabeth/accessibility-tabs branch 9 times, most recently from c1543e7 to 167dda6 Compare February 2, 2024 00:45
@eschutho eschutho force-pushed the elizabeth/accessibility-tabs branch from c225633 to a073e57 Compare February 26, 2024 19:40
@eschutho eschutho force-pushed the elizabeth/accessibility-tabs branch from a073e57 to 81efffb Compare February 27, 2024 00:07
@@ -170,25 +182,91 @@ const dropdownIconsStyles = css`
}
`;

export const handleDropdownNavigation = (
Copy link
Member

@kgabryje kgabryje Feb 27, 2024

Choose a reason for hiding this comment

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

I know that this PR is focused on dashboard interactions, but maybe (in future iterations if it's too complex?) we should add this functionality to the main Dropdown component, so that the keyboard navigation works in all dropdowns?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, good idea!

@kgabryje
Copy link
Member

When I'm navigating the dropdown with arrows, the whole page scrolls with every click 🙁 And it looks like I can't navigate to Submenus

Screen.Recording.2024-02-27.at.17.49.28.mov

@eschutho
Copy link
Member Author

When I'm navigating the dropdown with arrows, the whole page scrolls with every click 🙁 And it looks like I can't navigate to Submenus

Yeah, I didn't add the submenus yet. That's for a separate PR.

ToggleFullscreen = 'toggle_fullscreen',
ManageEmbedded = 'manage_embedded',
ManageEmailReports = 'manage_email_reports',
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Is this file just for typescript types or .. more?

Copy link
Member

Choose a reason for hiding this comment

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

What do you mean for "more"?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought maybe this file was only to be used for typescript types rather than runtime enums.

Diego Pucci and others added 2 commits April 8, 2024 17:09
@geido geido merged commit 34b1db2 into apache:master Apr 8, 2024
33 checks passed
@geido geido deleted the elizabeth/accessibility-tabs branch April 8, 2024 16:40
Copy link
Contributor

github-actions bot commented Apr 8, 2024

Ephemeral environment shutdown and build artifacts deleted.

EnxDev pushed a commit to EnxDev/superset that referenced this pull request Apr 15, 2024
@@ -771,7 +771,7 @@ describe('Dashboard edit', () => {
visitEdit();
});

it('should save', () => {
it.skip('should save', () => {
Copy link
Member

Choose a reason for hiding this comment

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

@eschutho I'm not sure the fate of these tests... should we scrap them, or try to rekindle them?

betodealmeida pushed a commit that referenced this pull request Apr 25, 2024
Co-authored-by: geido <[email protected]>
Co-authored-by: Diego Pucci <[email protected]>
(cherry picked from commit 34b1db2)
qleroy pushed a commit to qleroy/superset that referenced this pull request Apr 28, 2024
jingyi-zhao-01 pushed a commit to jingyi-zhao-01/superset that referenced this pull request May 16, 2024
eschutho added a commit that referenced this pull request Jun 5, 2024
Co-authored-by: geido <[email protected]>
Co-authored-by: Diego Pucci <[email protected]>
(cherry picked from commit 34b1db2)
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.1.0 labels Nov 27, 2024
@trepmag
Copy link
Contributor

trepmag commented Mar 24, 2025

Hello, I'm unsure why the following change was made which introduce shouldFocus in the filter input of the Data table section but it might break UX in chart explore; see #32813:
https://github.com/apache/superset/blame/f4a05a5ffdbafe879d4f917f52493563355a75df/superset-frontend/src/explore/components/DataTablesPane/components/DataTableControls.tsx#L72

<FilterInput onChangeHandler={onInputChange} shouldFocus />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XXL 🚢 4.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants