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

feat(Snackbar): allow setting the accesibility identifier via SnackbarConfig #386

Conversation

franciscojrp
Copy link
Member

@franciscojrp franciscojrp commented Jul 17, 2024

🎟️ Jira ticket

WLLT-1516

πŸ₯… What's the goal?

The current way of setting the accessibility identifier of the snarckbar title does not work for the SwiftUI modifier because the methods defined to set it are defined in Snackbar, but the SwiftUI modifier returns some View

🚧 How do we do it?

Use the existing SnackbarConfig (used to set the title) to set also the accessibility label and identifier if needed

@franciscojrp franciscojrp requested review from a team, pbartolome and alejandroruizponce and removed request for a team July 17, 2024 07:46
Copy link
Contributor

@pbartolome pbartolome left a comment

Choose a reason for hiding this comment

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

I think we are not consistent with how we configure this view... some things are configurable with the config struct, and other things as parameters in the view modifier... should we change the view modifier instead? or move all configuration to the config struct? anyway this looks ok

@franciscojrp
Copy link
Member Author

This is probably used by a lot of projects, so I tried not to modify anything that would make all those projects to change its code

@franciscojrp franciscojrp merged commit 4f1e08c into main Jul 18, 2024
2 checks passed
@franciscojrp franciscojrp deleted the WLLT-1516-allow-seting-snackbar-accesibility-identifier-via-config branch July 18, 2024 08:46
tuentisre pushed a commit that referenced this pull request Jul 18, 2024
# [31.2.0](v31.1.0...v31.2.0) (2024-07-18)

### Features

* **Snackbar:** allow setting the accesibility identifier via SnackbarConfig ([#386](#386)) ([4f1e08c](4f1e08c))
@tuentisre
Copy link
Collaborator

πŸŽ‰ This PR is included in version 31.2.0 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants