fix line-height override on add tab button for accessibility #2449
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
fix line-height override on add tab button for accessibility
[Supporting platform – Responsible AI Dashboard – Vision Dashboard->Add component]: After applying text spacing, keyboard focus indicator overlaps on the "Add component" button.
User Experience:
Users with cognitive disability and low vision who require increased space between lines, words, and letters will not be able to access the 'Add component' button quickly and will find some difficulty to understand control as the keyboard focus indicator overlaps with the button.
Pre-Requisite:
Go to - https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne?hl=en
Click on ‘Add to Chrome’ button.
After adding, you should find Stylus icon on the tool bar, click it to open drop down menu.
Select ‘Manage Styles’ from the menu.
On the manage styles screen, click on ‘Create new Style’.
The New style screen would open, here give a suitable name for your new style e.g. ‘Text spacing’
Add following CSS under ‘Code’ field –
Click on ‘Save’. Now you should be able to see the style applied automatically on the page including the content displayed within iFrames.
Repro Steps:
Open RAI dashboard
Navigate to the "Add component" button.
Observe whether keyboard focus indicator is overlapping on the button or not.
Actual Result:
After applying text spacing, keyboard focus indicator overlaps on the "Add component" button.
Expected Result:
After applying text spacing, keyboard focus indicator should not overlap on the "Add component" button. It should be clearly visible as they appear before applying text spacing.
Screenshot before fix without style overrides (no bug present):

Screenshot before fix with style overrides (see bug with focus window):

Screenshot after fix without style overrides:

Screenshot after fix with style overrides (bug fixed):

Checklist