-
Notifications
You must be signed in to change notification settings - Fork 4k
Fix UX inconsistencies between audio and camera input #11699
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
Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
✅ PR preview is ready!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes several UX inconsistencies between audio and camera input components.
- In CameraInput, the "Learn how to allow access" link is restyled to use theme colors and an underline.
- In AudioInput, the link now opens in a new tab, and the disabled state management for the WidgetLabel and clear button has been updated for consistency.
Reviewed Changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| frontend/lib/src/components/widgets/CameraInput/styled-components.ts | Updated link styling to use theme.colors.link and underline text. |
| frontend/lib/src/components/widgets/AudioInput/NoMicPermissions.tsx | Added rel, target attributes to ensure links open in new tab securely. |
| frontend/lib/src/components/widgets/AudioInput/AudioInput.tsx | Adjusted disabled logic for WidgetLabel and clear button to align with the desired UX. |
Comments suppressed due to low confidence (1)
frontend/lib/src/components/widgets/AudioInput/AudioInput.tsx:434
- Changing the WidgetLabel's disabled prop to solely use 'disabled' ensures the label remains active even if microphone permissions are missing, aligning its UX with CameraInput. Please confirm that this distinction between the label and interactive elements (clear button) is intentional and well documented.
disabled={disabled}
frontend/lib/src/components/widgets/CameraInput/styled-components.ts
Outdated
Show resolved
Hide resolved
frontend/lib/src/components/widgets/CameraInput/styled-components.ts
Outdated
Show resolved
Hide resolved
lukasmasuch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Describe your changes
Fixes a few small UX inconsistencies between audio and camera input:
Note that there's one inconsistency left (the label of camera input isn't gray/disabled) but that's a bigger implementation since the state isn't available where we set the label.
Before:
After:

GitHub Issue Link (if applicable)
Closes #11700
Testing Plan
Updated snapshots.
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.