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

Bug Fix : Observed Talkback Doesn't Announces Increase/Decrease Volume as "Buttons" #2422

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

2-coder
Copy link
Collaborator

@2-coder 2-coder commented Oct 7, 2024

WHAT

Added Semantic type to icon in VolumeScreen

WHY

Accessibility fix

HOW

Checklist 📋

  • Add explicit visibility modifier and explicit return types for public declarations
  • Run spotless check
  • Run tests
  • Update metalava's signature text files

@yschimke yschimke self-requested a review October 7, 2024 12:59
@@ -231,7 +233,7 @@ public object VolumeScreenDefaults {
@Composable
public fun IncreaseIcon() {
Icon(
modifier = Modifier.size(26.dp),
modifier = Modifier.size(26.dp).semantics { role = Role.Button },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Icon itself isn't a button. Shouldn't Stepper (Wear Compose) handle this?

We wrap it slightly, but called here.

* Wrapper for androidx.wear.compose.material.Stepper with default RSB scroll support.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stepper is not handing this. Default implementation of Increase Icon and decrease Icon description doesn't fulfill our requirement.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objection to landing this, but we should probably track a bug in Wear Compose to fix this, and revert once it happens.

@yschimke yschimke changed the title Bug Fix : [GAR][NF][Wear Media Playback Queue][LUNA][Exploratory] Observed Talkback Doesn't Announces Increase/Decrease Volume as "Buttons" in the Media Control Application. Bug Fix : Observed Talkback Doesn't Announces Increase/Decrease Volume as "Buttons" Oct 8, 2024
@yschimke yschimke merged commit 876d8ca into google:main Oct 8, 2024
6 checks passed
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