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

Music: sounds panel preview variant #58746

Merged
merged 1 commit into from
May 20, 2024

Conversation

breville
Copy link
Member

This is a new variant of the original SoundsPanel which borrows one idea from SoundsPanel2: when a sound is clicked, it plays a preview and changes the selection, but doesn't dismiss the panel. It can be tried using the sounds-panel-1-preview=true URL parameter.

@breville breville requested review from moneppo and a team May 19, 2024 00:26
onKeyDown={event => {
if (event.key === 'Enter') {
onSelect(folder.id + '/' + sound.src);
onSoundSelect();
Copy link
Contributor

Choose a reason for hiding this comment

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

Just confirming, you don't need to pass folder.id + '/' + sound.src to these functions because soundPath already stores this value right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes.

@breville breville merged commit 6d33589 into staging May 20, 2024
2 checks passed
@breville breville deleted the music-sounds-panel-preview-variant branch May 20, 2024 05:27
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.

None yet

2 participants