         for (index, button) in self.buttons.enumerated() {
             if index == self.selectedPanel?.rawValue {
                 button.tintColor = self.buttonSelectedTintColor
+                button.nameLabel.textColor = self.buttonSelectedTintColor
             } else {
                 button.tintColor = self.buttonTintColor
+                button.nameLabel.textColor = self.buttonTintColor
             }
         }
     }

    }()

    fileprivate var controllerContainerView = UIView()
    fileprivate var buttons: [UIButton] = []

    fileprivate var buttonTintColor: UIColor?
    fileprivate var buttonSelectedTintColor: UIColor?


    fileprivate func updateButtons() {
        for panel in panels {
            let button = LibraryPanelButton()
            button.addTarget(self, action: #selector(tappedButton), for: .touchUpInside)
            if let image = UIImage.templateImageNamed("panelIcon\(panel.imageName)") {
                button.setImage(image, for: .normal)
            }

            button.nameLabel.text = panel.accessibilityLabel
            button.accessibilityLabel = panel.accessibilityLabel
            button.accessibilityIdentifier = panel.accessibilityIdentifier
            buttons.append(button)
