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

fix class importance weights callout truncated in small view for accessibility #2462

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

imatiach-msft
Copy link
Contributor

@imatiach-msft imatiach-msft commented Dec 15, 2023

Description

fix class importance weights callout truncated in small view for accessibility

The class importance weights callout/tooltip is getting truncated when window size is small. This is occurring due to the doNotLayer=True value. However, the code for the callout is duplicated between the global importances and individual feature importances windows (despite being very similar) and during debugging I found there were numerous other issues due to the code being in two different places with slightly different parameters. Hence, this PR not only resolves the accessibility issue but also unifies the duplicated code into one ClassImportanceWeights class and re-uses it.

Class importance weights dropdown without callout:
image

Truncated view before fix:
image
Note how there is no scrollbar. Interestingly, sometimes, on multiple clicks, a scrollbar does appear but it still does not scroll all the way down, only partially.

After fix in global importances view (with scrollbar):
image

After fix in local importances view:
image

Note after the fix the scrollbar can scroll all the way down.

More information from original task filed:
[Usable – Responsible AI Dashboard – Feature Importance>Individual Feature Importance]: Tooltip of "Class importance weights Info(i)" button is truncated in the normal mode (100% zoom).

User Experience:
Low vision users and keyboard dependent people will get impacted if the text is misplaced/truncated in the normal mode. The end user finds some difficulty understanding the tooltip information and cannot access it properly.

Repro Steps:
Open RAI Dashboard
Navigate to "Feature importance's" section.
Navigate the "Individual Feature Importance" tab and the table present under it.
Select the row of the table, new data gets added below navigate it such as the edit fields, slider, TEXT FEATURE LEGEND Buttons etc.
Navigate to "Label Place" section.
Navigate to "Class importance weights Info(i)" button and select it.
A tooltip appears.
Observe whether the tooltip of "Class importance weights Info(i)" button is truncated in the normal mode (100% zoom) or not.
Actual Result:

The tooltip information of "Class importance weights Info(i)" button is truncated in the normal mode (100% zoom).

Observation: Tooltip information clearly visible when user decrease the display size (Zoom at 90%).
Expected Result:
The tooltip information of "Class importance weights Info(i)" button should not truncated in the normal mode (100% zoom). There should be some minimal gap between the button text and button boundary.

Note: The same issue exists in resize (Zoom at 200%) and reflow (Set the viewport to 320*256).

Checklist

  • I have added screenshots above for all UI changes.
  • I have added e2e tests for all UI changes.
  • Documentation was updated if it was needed.

@imatiach-msft imatiach-msft force-pushed the ilmat/class-imp-weights-callout-accessibility branch from 46e11a2 to 1561f0c Compare December 18, 2023 16:21
@imatiach-msft imatiach-msft merged commit 2a6ff82 into main Dec 18, 2023
60 checks passed
@imatiach-msft imatiach-msft deleted the ilmat/class-imp-weights-callout-accessibility branch December 18, 2023 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants