import { ClearButton } from '../../../../../components/controls/buttons';
import EscKeydownHandler from '../../../../../components/controls/EscKeydownHandler';
import OutsideClickHandler from '../../../../../components/controls/OutsideClickHandler';
+import { translate } from '../../../../../helpers/l10n';
import './InfoDrawer.css';
export interface InfoDrawerProps {
className={classNames('info-drawer info-drawer-pane', { open: displayed })}
style={{ top }}>
<div className="close-button">
- <ClearButton onClick={onClose} />
+ <ClearButton aria-label={translate('close')} onClick={onClose} />
</div>
{displayed && (
<EscKeydownHandler onKeydown={onClose}>
className="close-button"
>
<ClearButton
+ aria-label="close"
onClick={[MockFunction]}
/>
</div>
className="close-button"
>
<ClearButton
+ aria-label="close"
onClick={[MockFunction]}
/>
</div>
className={classNames('alert', className)}
isInline={isInline}
role="alert"
+ aria-label={translate('alert.tooltip', variant)}
variantInfo={variantInfo}
{...domProps}>
<StyledAlertInner isBanner={isBanner}>
- <StyledAlertIcon
- aria-label={translate('alert.tooltip', variant)}
- isBanner={isBanner}
- variantInfo={variantInfo}>
+ <StyledAlertIcon isBanner={isBanner} variantInfo={variantInfo}>
{variantInfo.icon}
</StyledAlertIcon>
<StyledAlertContent className="alert-content">{props.children}</StyledAlertContent>
}
<div
+ aria-label="alert.tooltip.error"
class="alert alert-test emotion-3"
id="error-message"
role="alert"
class="emotion-2"
>
<div
- aria-label="alert.tooltip.error"
class="emotion-0"
>
<svg
exports[`should render properly 1`] = `
<Styled(div)
+ aria-label="alert.tooltip.error"
className="alert alert-test"
id="error-message"
isInline={false}
isBanner={false}
>
<Styled(div)
- aria-label="alert.tooltip.error"
isBanner={false}
variantInfo={
Object {