-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Created valid structure for audio menu #16007
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
base: master
Are you sure you want to change the base?
Created valid structure for audio menu #16007
Conversation
Hi, thanks for your contribution! |
a8f1575
to
7b3480b
Compare
@Calinteodor can you PTAL? |
@@ -232,7 +232,7 @@ const ContextMenuItem = ({ | |||
<div | |||
aria-controls = { controls } | |||
aria-disabled = { disabled } | |||
aria-label = { accessibilityLabel } | |||
aria-label = { accessibilityLabel || undefined } |
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.
do we need to specify undefined?
@@ -135,39 +135,38 @@ const SpeakerEntry = (props: IProps) => { | |||
} | |||
|
|||
const { children, isSelected, index, length } = props; | |||
const testLabel = 'Test'; |
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.
think we usually i18n those as well. seems it was not the case for this one though :) Think you can add it to translates?
tabIndex = { -1 }> | ||
<ContextMenuItemGroup> | ||
<ContextMenuItemGroup | ||
aria-labelledby = { microphoneHeaderId } |
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.
you can name the prop directly ariaLabelledBy
, as it does not act as a HTML element attribute on the component, but as a simple prop, and then you can get rid of the aliasing 'aria-labelledby': ariaLabelledBy
in the component. Alternatively, you can let it like this and let it propagate through the ...rest
props in the component.
By using
menu
,group
andmenuitemradio
we have a more clearly and valid structured html.Previously