mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-08-31 23:57:46 +00:00
feat: Make Jitsi WCAG 2.1 compliant (#8921)
* Make Jitsi WCAG 2.1 compliant * Fixed password form keypress handling * Added keypress handler to name form * Removed unneccessary dom query * Fixed mouse hove style * Removed obsolete css rules * accessibilty background feature * Merge remote-tracking branch 'upstream/master' into nic/fix/merge-conflicts * fix error * add german translation * Fixed merge issue * Add id prop back to device selection * Fixed lockfile Co-authored-by: AHMAD KADRI <52747422+ahmadkadri@users.noreply.github.com>
This commit is contained in:
@@ -36,6 +36,36 @@ type Props = {
|
||||
* Additional styles.
|
||||
*/
|
||||
styles?: Object,
|
||||
|
||||
/**
|
||||
* aria label for the Icon.
|
||||
*/
|
||||
ariaLabel?: string,
|
||||
|
||||
/**
|
||||
* whether the element has a popup
|
||||
*/
|
||||
ariaHasPopup?: boolean,
|
||||
|
||||
/**
|
||||
* whether the element popup is expanded
|
||||
*/
|
||||
ariaExpanded?: boolean,
|
||||
|
||||
/**
|
||||
* The id of the element this button icon controls
|
||||
*/
|
||||
ariaControls?: string,
|
||||
|
||||
/**
|
||||
* keydown handler for icon.
|
||||
*/
|
||||
onIconKeyDown?: Function,
|
||||
|
||||
/**
|
||||
* The ID of the icon button
|
||||
*/
|
||||
iconId: string
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -51,7 +81,13 @@ export default function ToolboxButtonWithIcon(props: Props) {
|
||||
iconDisabled,
|
||||
iconTooltip,
|
||||
onIconClick,
|
||||
styles
|
||||
onIconKeyDown,
|
||||
styles,
|
||||
ariaLabel,
|
||||
ariaHasPopup,
|
||||
ariaControls,
|
||||
ariaExpanded,
|
||||
iconId
|
||||
} = props;
|
||||
|
||||
const iconProps = {};
|
||||
@@ -62,6 +98,12 @@ export default function ToolboxButtonWithIcon(props: Props) {
|
||||
} else {
|
||||
iconProps.className = 'settings-button-small-icon';
|
||||
iconProps.onClick = onIconClick;
|
||||
iconProps.onKeyDown = onIconKeyDown;
|
||||
iconProps.role = 'button';
|
||||
iconProps.tabIndex = 0;
|
||||
iconProps.ariaControls = ariaControls;
|
||||
iconProps.ariaExpanded = ariaExpanded;
|
||||
iconProps.containerId = iconId;
|
||||
}
|
||||
|
||||
|
||||
@@ -77,6 +119,8 @@ export default function ToolboxButtonWithIcon(props: Props) {
|
||||
position = 'top'>
|
||||
<Icon
|
||||
{ ...iconProps }
|
||||
ariaHasPopup = { ariaHasPopup }
|
||||
ariaLabel = { ariaLabel }
|
||||
size = { 9 }
|
||||
src = { icon } />
|
||||
</Tooltip>
|
||||
|
||||
Reference in New Issue
Block a user