-
Notifications
You must be signed in to change notification settings - Fork 35
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
[BPKBarChart] ACC-455/ACC-456 Resolve Accessibility defects #1964
Conversation
@@ -26,7 +26,6 @@ internal final class BPKBarChartCollectionViewCell: UICollectionViewCell { | |||
lazy public var barChartBar: BPKBarChartBar = { | |||
let view: BPKBarChartBar = BPKBarChartBar() | |||
view.translatesAutoresizingMaskIntoConstraints = false | |||
view.isUserInteractionEnabled = false |
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.
This would add 'dimmed' to the barchart read out for each bar
@@ -20,10 +20,10 @@ import UIKit | |||
|
|||
@objcMembers | |||
@objc(BPKBarChartBar) | |||
public final class BPKBarChartBar: UIControl { | |||
public final class BPKBarChartBar: UIView { |
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.
Make the bar a simple UIView, we only used UIControl to facilitate isSelected as a property
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.
Any cons in leaving this a UIControl? Given is an intractable element and UIControl inherits from UIView, seems alright to leave it like that?
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.
The problem is that we then need to set userInteractionEnabled = false on it, to allow selection of the cell.
There was no point in having it as a UIControl, if we do and disable interaction it will announce as disabled :/
BPKBarChart
Remember to include the following changes:
README.md
Backpack.h
header fileIf you are curious about how we review, please read through the code review guidelines