Navigation Menu

Skip to content

Commit

Permalink
[Buttons] Update accessibility label for FABs (#8911)
Browse files Browse the repository at this point in the history
This change updates the accessibility label for both FABs within the `Buttons (Swift and Storyboard)` example.

Closes #8854
  • Loading branch information
codeman7 committed Nov 15, 2019
1 parent 28b838c commit 98cafa6
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -83,10 +83,14 @@ class ButtonsSwiftAndStoryboardController: UIViewController {

let floatingPlusShapeLayer = ButtonsTypicalUseSupplemental.createPlusShapeLayer(floatingButton)
floatingButton.layer.addSublayer(floatingPlusShapeLayer)
floatingButton.applySecondaryTheme(withScheme: containerScheme)
floatingButton.accessibilityLabel = "Programmatic floating action button"
innerContainerView.addSubview(floatingButton)

let storyboardPlusShapeLayer =
ButtonsTypicalUseSupplemental.createPlusShapeLayer(floatingButton)
storyboardFloating.applySecondaryTheme(withScheme: containerScheme)
storyboardFloating.accessibilityLabel = "Storyboard floating action button"
storyboardFloating.layer.addSublayer(storyboardPlusShapeLayer)

storyboardContained.applyContainedTheme(withScheme: containerScheme)
Expand Down

0 comments on commit 98cafa6

Please sign in to comment.