MM-61897 - fix duplicated role dialog in boostrap modals (#29507)
* MM-61897 - fix duplicated role dialog in modals * fix linter
Этот коммит содержится в:
@@ -27,7 +27,7 @@ exports[`components/GetLinkModal should have called onHide 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -122,7 +122,7 @@ exports[`components/GetLinkModal should have called onHide 2`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -208,7 +208,7 @@ exports[`components/GetLinkModal should match snapshot when all props is set 1`]
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -299,7 +299,7 @@ exports[`components/GetLinkModal should match snapshot when helpText is not set
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`components/ChannelInfoModal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ export default class AboutBuildModal extends React.PureComponent<Props, State> {
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.doHide}
|
onHide={this.doHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='aboutModalLabel'
|
aria-labelledby='aboutModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ export default function AboutBuildModalCloud(props: Props) {
|
|||||||
show={props.show}
|
show={props.show}
|
||||||
onHide={props.doHide}
|
onHide={props.doHide}
|
||||||
onExited={props.onExited}
|
onExited={props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='aboutModalLabel'
|
aria-labelledby='aboutModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`components/AccessHistoryModal should match snapshot when audits exist 1
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -109,7 +109,7 @@ exports[`components/AccessHistoryModal should match snapshot when no audits exis
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ const AccessHistoryModal = ({
|
|||||||
onHide={onCloseClick}
|
onHide={onCloseClick}
|
||||||
onExited={onHide}
|
onExited={onHide}
|
||||||
bsSize='large'
|
bsSize='large'
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='accessHistoryModalLabel'
|
aria-labelledby='accessHistoryModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`components/ActivityLogModal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -110,7 +110,7 @@ exports[`components/ActivityLogModal should match snapshot when submitRevoke is
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export default class ActivityLogModal extends React.PureComponent<Props, State>
|
|||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onExited={this.props.onHide}
|
onExited={this.props.onHide}
|
||||||
bsSize='large'
|
bsSize='large'
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='activityLogModalLabel'
|
aria-labelledby='activityLogModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ exports[`components/AddUserToChannelModal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ export default class AddUserToChannelModal extends React.PureComponent<Props, St
|
|||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onExited={this.onExited}
|
onExited={this.onExited}
|
||||||
enforceFocus={true}
|
enforceFocus={true}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='addChannelModalLabel'
|
aria-labelledby='addChannelModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`component/add_users_to_group_modal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ const AddUsersToGroupModal = (props: Props) => {
|
|||||||
show={show}
|
show={show}
|
||||||
onHide={doHide}
|
onHide={doHide}
|
||||||
onExited={props.onExited}
|
onExited={props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='createUserGroupsModalLabel'
|
aria-labelledby='createUserGroupsModalLabel'
|
||||||
id='addUsersToGroupsModal'
|
id='addUsersToGroupsModal'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export default class FullLogEventModal extends React.PureComponent<Props, State>
|
|||||||
show={this.props.show}
|
show={this.props.show}
|
||||||
onHide={this.props.onModalDismissed}
|
onHide={this.props.onModalDismissed}
|
||||||
dialogClassName='a11y__modal full-log-event'
|
dialogClassName='a11y__modal full-log-event'
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='fullLogEventModalLabel'
|
aria-labelledby='fullLogEventModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -356,7 +356,7 @@ export default class ManageRolesModal extends React.PureComponent<Props, State>
|
|||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
dialogClassName='a11y__modal manage-teams'
|
dialogClassName='a11y__modal manage-teams'
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='manageRolesModalLabel'
|
aria-labelledby='manageRolesModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ exports[`ManageTeamsModal should match snapshot init 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ const ManageTeamsModal = ({locale, onExited, user, actions}: Props) => {
|
|||||||
onHide={onModalDismissed}
|
onHide={onModalDismissed}
|
||||||
onExited={onExited}
|
onExited={onExited}
|
||||||
dialogClassName='a11y__modal manage-teams modal--overflow-visible'
|
dialogClassName='a11y__modal manage-teams modal--overflow-visible'
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='manageTeamsModalLabel'
|
aria-labelledby='manageTeamsModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ exports[`components/admin_console/manage_tokens_modal/manage_tokens_modal.tsx in
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -123,7 +123,7 @@ exports[`components/admin_console/manage_tokens_modal/manage_tokens_modal.tsx sh
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -288,7 +288,7 @@ exports[`components/admin_console/manage_tokens_modal/manage_tokens_modal.tsx sh
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ export default class ManageTokensModal extends React.PureComponent<Props, State>
|
|||||||
onHide={this.onModalDismissed}
|
onHide={this.onModalDismissed}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
dialogClassName='a11y__modal manage-teams'
|
dialogClassName='a11y__modal manage-teams'
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='manageTokensModalLabel'
|
aria-labelledby='manageTokensModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export default function EditPostTimeLimitModal(props: Props) {
|
|||||||
<Modal
|
<Modal
|
||||||
dialogClassName='a11y__modal admin-modal edit-post-time-limit-modal'
|
dialogClassName='a11y__modal admin-modal edit-post-time-limit-modal'
|
||||||
show={props.show}
|
show={props.show}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='editPostTimeModalLabel'
|
aria-labelledby='editPostTimeModalLabel'
|
||||||
onHide={props.onClose}
|
onHide={props.onClose}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`components/admin_console/reset_email_modal/reset_email_modal.tsx should
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -143,7 +143,7 @@ exports[`components/admin_console/reset_email_modal/reset_email_modal.tsx should
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ export default class ResetEmailModal extends React.PureComponent<Props, State> {
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.doCancel}
|
onHide={this.doCancel}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='resetEmailModalLabel'
|
aria-labelledby='resetEmailModalLabel'
|
||||||
data-testid='resetEmailModal'
|
data-testid='resetEmailModal'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ exports[`components/admin_console/reset_password_modal/reset_password_modal.tsx
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ export default class ResetPasswordModal extends React.PureComponent<Props, State
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.doCancel}
|
onHide={this.doCancel}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='resetPasswordModalLabel'
|
aria-labelledby='resetPasswordModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`admin_console/team_channel_settings/group/GroupList should match snapsh
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ const GroupMembersModal: React.FC<Props> = ({
|
|||||||
show={show}
|
show={show}
|
||||||
onHide={handleHide}
|
onHide={handleHide}
|
||||||
onExited={handleExit}
|
onExited={handleExit}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='groupMemberModalLabel'
|
aria-labelledby='groupMemberModalLabel'
|
||||||
id='groupMembersModal'
|
id='groupMembersModal'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ const UsersToBeRemovedModal = ({total, scope, scopeId, users, onExited}: Props)
|
|||||||
onHide={handleHide}
|
onHide={handleHide}
|
||||||
onExited={onExited}
|
onExited={onExited}
|
||||||
id='confirmModal'
|
id='confirmModal'
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='confirmModalLabel'
|
aria-labelledby='confirmModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`AppsFormComponent should set match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<form
|
<form
|
||||||
|
|||||||
@@ -370,7 +370,7 @@ export class AppsForm extends React.PureComponent<Props, State> {
|
|||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
backdrop='static'
|
backdrop='static'
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='appsModalLabel'
|
aria-labelledby='appsModalLabel'
|
||||||
>
|
>
|
||||||
<form
|
<form
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`components/channel_invite_modal should match snapshot for channel_invit
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -190,7 +190,7 @@ exports[`components/channel_invite_modal should match snapshot for channel_invit
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -374,7 +374,7 @@ exports[`components/channel_invite_modal should match snapshot with exclude and
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -542,7 +542,7 @@ export class ChannelInviteModal extends React.PureComponent<Props, State> {
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='channelInviteModalLabel'
|
aria-labelledby='channelInviteModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header
|
<Modal.Header
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ exports[`components/ChannelMembersModal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -123,7 +123,7 @@ exports[`components/ChannelMembersModal should match snapshot with archived chan
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ export default class ChannelMembersModal extends React.PureComponent<Props, Stat
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.handleHide}
|
onHide={this.handleHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='channelMembersModalLabel'
|
aria-labelledby='channelMembersModalLabel'
|
||||||
id='channelMembersModal'
|
id='channelMembersModal'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ Object {
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
role="dialog"
|
role="none"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="fade modal-backdrop"
|
class="fade modal-backdrop"
|
||||||
@@ -430,7 +430,7 @@ Object {
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
role="dialog"
|
role="none"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="fade modal-backdrop"
|
class="fade modal-backdrop"
|
||||||
@@ -987,7 +987,7 @@ Object {
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
role="dialog"
|
role="none"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="fade modal-backdrop"
|
class="fade modal-backdrop"
|
||||||
@@ -1291,7 +1291,7 @@ Object {
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
role="dialog"
|
role="none"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="fade modal-backdrop"
|
class="fade modal-backdrop"
|
||||||
@@ -1791,7 +1791,7 @@ Object {
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
role="dialog"
|
role="none"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="fade modal-backdrop"
|
class="fade modal-backdrop"
|
||||||
@@ -2291,7 +2291,7 @@ Object {
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
role="dialog"
|
role="none"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="fade modal-backdrop"
|
class="fade modal-backdrop"
|
||||||
|
|||||||
@@ -350,7 +350,7 @@ export default function ChannelNotificationsModal(props: Props) {
|
|||||||
show={show}
|
show={show}
|
||||||
onHide={handleHide}
|
onHide={handleHide}
|
||||||
onExited={props.onExited}
|
onExited={props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='channelNotificationModalLabel'
|
aria-labelledby='channelNotificationModalLabel'
|
||||||
style={{display: 'flex', placeItems: 'center'}}
|
style={{display: 'flex', placeItems: 'center'}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ exports[`components/ChannelSelectorModal exclude already selected 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -192,7 +192,7 @@ exports[`components/ChannelSelectorModal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ export class ChannelSelectorModal extends React.PureComponent<Props, State> {
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.handleHide}
|
onHide={this.handleHide}
|
||||||
onExited={this.handleExit}
|
onExited={this.handleExit}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='channelSelectorModalLabel'
|
aria-labelledby='channelSelectorModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ exports[`components/pricing_modal/downgrade_team_removal_modal matches snapshot
|
|||||||
<div
|
<div
|
||||||
aria-modal={true}
|
aria-modal={true}
|
||||||
className="FullScreenModal"
|
className="FullScreenModal"
|
||||||
role="dialog"
|
role="none"
|
||||||
tabIndex={-1}
|
tabIndex={-1}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ export default class ConfirmModal extends React.Component<Props, State> {
|
|||||||
show={this.props.show}
|
show={this.props.show}
|
||||||
onHide={this.handleCancel}
|
onHide={this.handleCancel}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-modal={true}
|
aria-modal={true}
|
||||||
aria-labelledby='confirmModalLabel'
|
aria-labelledby='confirmModalLabel'
|
||||||
aria-describedby='confirmModalBody'
|
aria-describedby='confirmModalBody'
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ export default class ConvertChannelModal extends React.PureComponent<Props, Stat
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onExited={onExited}
|
onExited={onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='convertChannelModalLabel'
|
aria-labelledby='convertChannelModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`component/create_user_groups_modal should match snapshot with back butt
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -175,7 +175,7 @@ exports[`component/create_user_groups_modal should match snapshot without back b
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ export class CreateUserGroupsModal extends React.PureComponent<Props, State> {
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.doHide}
|
onHide={this.doHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='createUserGroupsModalLabel'
|
aria-labelledby='createUserGroupsModalLabel'
|
||||||
id='createUserGroupsModal'
|
id='createUserGroupsModal'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`components/delete_channel_modal should match snapshot for delete_channe
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export default class DeleteChannelModal extends React.PureComponent<Props, State
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='deleteChannelModalLabel'
|
aria-labelledby='deleteChannelModalLabel'
|
||||||
id='deleteChannelModal'
|
id='deleteChannelModal'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ exports[`components/delete_post_modal should match snapshot for delete_post_moda
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -117,7 +117,7 @@ exports[`components/delete_post_modal should match snapshot for delete_post_moda
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -215,7 +215,7 @@ exports[`components/delete_post_modal should match snapshot for post with 1 comm
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ export default class DeletePostModal extends React.PureComponent<Props, State> {
|
|||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
id='deletePostModal'
|
id='deletePostModal'
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='deletePostModalLabel'
|
aria-labelledby='deletePostModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ exports[`components/EditChannelHeaderModal edit direct message channel 1`] = `
|
|||||||
onKeyDown={[Function]}
|
onKeyDown={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -154,7 +154,7 @@ exports[`components/EditChannelHeaderModal error with intl message 1`] = `
|
|||||||
onKeyDown={[Function]}
|
onKeyDown={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -302,7 +302,7 @@ exports[`components/EditChannelHeaderModal error without intl message 1`] = `
|
|||||||
onKeyDown={[Function]}
|
onKeyDown={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -442,7 +442,7 @@ exports[`components/EditChannelHeaderModal should match snapshot, init 1`] = `
|
|||||||
onKeyDown={[Function]}
|
onKeyDown={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -572,7 +572,7 @@ exports[`components/EditChannelHeaderModal submitted 1`] = `
|
|||||||
onKeyDown={[Function]}
|
onKeyDown={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ export class EditChannelHeaderModal extends React.PureComponent<Props, State> {
|
|||||||
onHide={this.hideModal}
|
onHide={this.hideModal}
|
||||||
onEntering={this.handleEntering}
|
onEntering={this.handleEntering}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='editChannelHeaderModalLabel'
|
aria-labelledby='editChannelHeaderModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`comoponents/EditChannelPurposeModal clear error on next 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -141,7 +141,7 @@ exports[`comoponents/EditChannelPurposeModal match with modal error 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -254,7 +254,7 @@ exports[`comoponents/EditChannelPurposeModal match with modal error with fake id
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -367,7 +367,7 @@ exports[`comoponents/EditChannelPurposeModal should match for private channel 1`
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -470,7 +470,7 @@ exports[`comoponents/EditChannelPurposeModal should match on init 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -581,7 +581,7 @@ exports[`comoponents/EditChannelPurposeModal should match submitted 1`] = `
|
|||||||
dialogClassName="a11y__modal"
|
dialogClassName="a11y__modal"
|
||||||
handleDialogMouseDown={[Function]}
|
handleDialogMouseDown={[Function]}
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
role="dialog"
|
role="none"
|
||||||
style={Object {}}
|
style={Object {}}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -685,7 +685,7 @@ exports[`comoponents/EditChannelPurposeModal should match with display name 1`]
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ export class EditChannelPurposeModal extends React.PureComponent<Props, State> {
|
|||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onEntering={this.handleEntering}
|
onEntering={this.handleEntering}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='editChannelPurposeModalLabel'
|
aria-labelledby='editChannelPurposeModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`components/FilePreviewModal should fall back to default preview if plug
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
@@ -168,7 +168,7 @@ exports[`components/FilePreviewModal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
@@ -308,7 +308,7 @@ exports[`components/FilePreviewModal should match snapshot for external file 1`]
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
@@ -448,7 +448,7 @@ exports[`components/FilePreviewModal should match snapshot when plugin overrides
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
@@ -626,7 +626,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
@@ -777,7 +777,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded and showing f
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
@@ -928,7 +928,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with .js file
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
@@ -1081,7 +1081,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with .m4a fil
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
@@ -1232,7 +1232,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with .mov fil
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
@@ -1383,7 +1383,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with footer 1
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
@@ -1534,7 +1534,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with image 1`
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
@@ -1685,7 +1685,7 @@ exports[`components/FilePreviewModal should match snapshot, loaded with other fi
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
|
|||||||
@@ -406,7 +406,7 @@ export default class FilePreviewModal extends React.PureComponent<Props, State>
|
|||||||
dialogClassName={dialogClassName}
|
dialogClassName={dialogClassName}
|
||||||
animation={true}
|
animation={true}
|
||||||
backdrop={false}
|
backdrop={false}
|
||||||
role='dialog'
|
role='none'
|
||||||
style={{paddingLeft: 0}}
|
style={{paddingLeft: 0}}
|
||||||
aria-labelledby='viewImageModalLabel'
|
aria-labelledby='viewImageModalLabel'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export default class GetLinkModal extends React.PureComponent<Props, State> {
|
|||||||
show={this.props.show}
|
show={this.props.show}
|
||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='getLinkModalLabel'
|
aria-labelledby='getLinkModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header
|
<Modal.Header
|
||||||
|
|||||||
@@ -527,7 +527,7 @@ exports[`components/integrations/AbstractOutgoingOAuthConnection should match sn
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={false}
|
show={false}
|
||||||
>
|
>
|
||||||
<Modal
|
<Modal
|
||||||
@@ -1114,7 +1114,7 @@ exports[`components/integrations/AbstractOutgoingOAuthConnection should match sn
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={false}
|
show={false}
|
||||||
>
|
>
|
||||||
<Modal
|
<Modal
|
||||||
|
|||||||
@@ -516,7 +516,7 @@ exports[`components/integrations/AddOutgoingOAuthConnection should match snapsho
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={false}
|
show={false}
|
||||||
>
|
>
|
||||||
<Modal
|
<Modal
|
||||||
|
|||||||
@@ -577,7 +577,7 @@ https://myothersite.com/api/v2"
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={false}
|
show={false}
|
||||||
>
|
>
|
||||||
<Modal
|
<Modal
|
||||||
@@ -678,7 +678,7 @@ https://myothersite.com/api/v2"
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={false}
|
show={false}
|
||||||
>
|
>
|
||||||
<Modal
|
<Modal
|
||||||
@@ -1297,7 +1297,7 @@ https://myothersite.com/api/v2"
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={false}
|
show={false}
|
||||||
>
|
>
|
||||||
<Modal
|
<Modal
|
||||||
@@ -1398,7 +1398,7 @@ https://myothersite.com/api/v2"
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={false}
|
show={false}
|
||||||
>
|
>
|
||||||
<Modal
|
<Modal
|
||||||
@@ -2016,7 +2016,7 @@ https://myothersite.com/api/v2"
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={false}
|
show={false}
|
||||||
>
|
>
|
||||||
<Modal
|
<Modal
|
||||||
@@ -2117,7 +2117,7 @@ https://myothersite.com/api/v2"
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={false}
|
show={false}
|
||||||
>
|
>
|
||||||
<Modal
|
<Modal
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ export default class InteractiveDialog extends React.PureComponent<Props, State>
|
|||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
backdrop='static'
|
backdrop='static'
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='interactiveDialogModalLabel'
|
aria-labelledby='interactiveDialogModalLabel'
|
||||||
>
|
>
|
||||||
<form
|
<form
|
||||||
|
|||||||
@@ -424,7 +424,7 @@ export default class InvitationModal extends React.PureComponent<Props, State> {
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.handleHide}
|
onHide={this.handleHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
backdrop={this.getBackdrop()}
|
backdrop={this.getBackdrop()}
|
||||||
aria-modal='true'
|
aria-modal='true'
|
||||||
aria-labelledby='invitation_modal_title'
|
aria-labelledby='invitation_modal_title'
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ exports[`components/KeyboardShortcutsModal should match snapshot modal 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -674,7 +674,7 @@ exports[`components/KeyboardShortcutsModal should match snapshot modal with Call
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ const KeyboardShortcutsModal = ({onExited}: Props): JSX.Element => {
|
|||||||
show={show}
|
show={show}
|
||||||
onHide={handleHide}
|
onHide={handleHide}
|
||||||
onExited={onExited}
|
onExited={onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='shortcutsModalLabel'
|
aria-labelledby='shortcutsModalLabel'
|
||||||
>
|
>
|
||||||
<div className='shortcuts-content'>
|
<div className='shortcuts-content'>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ exports[`components/LeaveTeamModal should render the leave team model 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ export default class LeaveTeamModal extends React.PureComponent<Props, State> {
|
|||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
onHide={this.handleHide}
|
onHide={this.handleHide}
|
||||||
id='leaveTeamModal'
|
id='leaveTeamModal'
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='leaveTeamModalLabel'
|
aria-labelledby='leaveTeamModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={false}>
|
<Modal.Header closeButton={false}>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ exports[`components/MoreDirectChannels should exclude deleted users if there is
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
@@ -320,7 +320,7 @@ exports[`components/MoreDirectChannels should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ export default class MoreDirectChannels extends React.PureComponent<Props, State
|
|||||||
onHide={this.handleHide}
|
onHide={this.handleHide}
|
||||||
onExited={this.handleExit}
|
onExited={this.handleExit}
|
||||||
onEntered={this.loadModalData}
|
onEntered={this.loadModalData}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='moreDmModalLabel'
|
aria-labelledby='moreDmModalLabel'
|
||||||
id='moreDmModal'
|
id='moreDmModal'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const OnBoardingVideoModal = ({onExited}: Props) => {
|
|||||||
onHide={handleHide}
|
onHide={handleHide}
|
||||||
onExited={onExited}
|
onExited={onExited}
|
||||||
enforceFocus={false}
|
enforceFocus={false}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='onBoardingVideoModal'
|
aria-labelledby='onBoardingVideoModal'
|
||||||
>
|
>
|
||||||
<Modal.Header
|
<Modal.Header
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`components/marketplace/ doesn't show web marketplace banner in FeatureF
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -118,7 +118,7 @@ exports[`components/marketplace/ hides search, shows web marketplace banner in F
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -209,7 +209,7 @@ exports[`components/marketplace/ should render default 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -351,7 +351,7 @@ exports[`components/marketplace/ should render with error banner 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -510,7 +510,7 @@ exports[`components/marketplace/ should render with no plugins available 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -660,7 +660,7 @@ exports[`components/marketplace/ should render with plugins available 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -828,7 +828,7 @@ exports[`components/marketplace/ should render with plugins installed 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ const PostDeletedModal = ({
|
|||||||
show={show}
|
show={show}
|
||||||
onHide={handleHide}
|
onHide={handleHide}
|
||||||
onExited={onExited}
|
onExited={onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='postDeletedModalLabel'
|
aria-labelledby='postDeletedModalLabel'
|
||||||
data-testid='postDeletedModal'
|
data-testid='postDeletedModal'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ function PricingModal(props: Props) {
|
|||||||
data-testid='pricingModal'
|
data-testid='pricingModal'
|
||||||
dialogClassName='a11y__modal'
|
dialogClassName='a11y__modal'
|
||||||
onHide={onHide}
|
onHide={onHide}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-modal='true'
|
aria-modal='true'
|
||||||
aria-labelledby='pricing_modal_title'
|
aria-labelledby='pricing_modal_title'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ exports[`components/QuickSwitchModal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={false}
|
restoreFocus={false}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ export default class QuickSwitchModal extends React.PureComponent<Props, State>
|
|||||||
onHide={this.hideOnCancel}
|
onHide={this.hideOnCancel}
|
||||||
enforceFocus={false}
|
enforceFocus={false}
|
||||||
restoreFocus={false}
|
restoreFocus={false}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='quickSwitchHeader'
|
aria-labelledby='quickSwitchHeader'
|
||||||
aria-describedby='quickSwitchHeaderWithHint'
|
aria-describedby='quickSwitchHeaderWithHint'
|
||||||
animation={false}
|
animation={false}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ exports[`components/RemoveFromChannelModal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export default class RemovedFromChannelModal extends React.PureComponent<Props,
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='removeFromChannelModalLabel'
|
aria-labelledby='removeFromChannelModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`components/RenameChannelModal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ export class RenameChannelModal extends React.PureComponent<Props, State> {
|
|||||||
onHide={this.handleCancel}
|
onHide={this.handleCancel}
|
||||||
onEntering={this.handleEntering}
|
onEntering={this.handleEntering}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='renameChannelModalLabel'
|
aria-labelledby='renameChannelModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ Object {
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
role="dialog"
|
role="none"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="fade modal-backdrop in"
|
class="fade modal-backdrop in"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ function AirGappedModal({onClose}: Props) {
|
|||||||
dialogClassName={'AirGappedModal__dialog'}
|
dialogClassName={'AirGappedModal__dialog'}
|
||||||
show={true}
|
show={true}
|
||||||
id='airGappedModal'
|
id='airGappedModal'
|
||||||
role='dialog'
|
role='none'
|
||||||
onHide={() => onClose?.()}
|
onHide={() => onClose?.()}
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ function StartTrialFormModal(props: Props): JSX.Element | null {
|
|||||||
dialogClassName='a11y__modal'
|
dialogClassName='a11y__modal'
|
||||||
show={show}
|
show={show}
|
||||||
id='StartTrialFormModal'
|
id='StartTrialFormModal'
|
||||||
role='dialog'
|
role='none'
|
||||||
onHide={handleOnClose}
|
onHide={handleOnClose}
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`components/TeamMembersModal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ export default class TeamMembersModal extends React.PureComponent<Props, State>
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.handleHide}
|
onHide={this.handleHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='teamMemberModalLabel'
|
aria-labelledby='teamMemberModalLabel'
|
||||||
id='teamMembersModal'
|
id='teamMembersModal'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ export class TeamSelectorModal extends React.PureComponent<Props, State> {
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.handleHide}
|
onHide={this.handleHide}
|
||||||
onExited={this.handleExit}
|
onExited={this.handleExit}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='teamSelectorModalLabel'
|
aria-labelledby='teamSelectorModalLabel'
|
||||||
>
|
>
|
||||||
<Modal.Header closeButton={true}>
|
<Modal.Header closeButton={true}>
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ const TeamSettingsModal = ({onExited, canInviteUsers}: Props) => {
|
|||||||
show={show}
|
show={show}
|
||||||
onHide={handleHide}
|
onHide={handleHide}
|
||||||
onExited={handleClose}
|
onExited={handleClose}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='teamSettingsModalLabel'
|
aria-labelledby='teamSettingsModalLabel'
|
||||||
id='teamSettingsModal'
|
id='teamSettingsModal'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`components/unarchive_channel_modal should match snapshot for unarchive_
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export default class UnarchiveChannelModal extends React.PureComponent<Props, St
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.onHide}
|
onHide={this.onHide}
|
||||||
onExited={this.props.onExited}
|
onExited={this.props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='unarchiveChannelModalLabel'
|
aria-labelledby='unarchiveChannelModalLabel'
|
||||||
id='unarchiveChannelModal'
|
id='unarchiveChannelModal'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`component/update_user_group_modal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalHeader
|
<ModalHeader
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ const UpdateUserGroupModal = ({
|
|||||||
show={show}
|
show={show}
|
||||||
onHide={doHide}
|
onHide={doHide}
|
||||||
onExited={onExited}
|
onExited={onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='createUserGroupsModalLabel'
|
aria-labelledby='createUserGroupsModalLabel'
|
||||||
id='createUserGroupsModal'
|
id='createUserGroupsModal'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`component/user_groups_modal should match snapshot with groups 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<Connect(Component)
|
<Connect(Component)
|
||||||
@@ -154,7 +154,7 @@ exports[`component/user_groups_modal should match snapshot without groups 1`] =
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<Connect(Component)
|
<Connect(Component)
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ const UserGroupsModal = (props: Props) => {
|
|||||||
show={show}
|
show={show}
|
||||||
onHide={doHide}
|
onHide={doHide}
|
||||||
onExited={props.onExited}
|
onExited={props.onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='userGroupsModalLabel'
|
aria-labelledby='userGroupsModalLabel'
|
||||||
id='userGroupsModal'
|
id='userGroupsModal'
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ exports[`component/view_user_group_modal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<Connect(Component)
|
<Connect(Component)
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ export default class ViewUserGroupModal extends React.PureComponent<Props, State
|
|||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
onHide={this.doHide}
|
onHide={this.doHide}
|
||||||
onExited={onExited}
|
onExited={onExited}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-labelledby='viewUserGroupModalLabel'
|
aria-labelledby='viewUserGroupModalLabel'
|
||||||
>
|
>
|
||||||
<ViewUserGroupModalHeader
|
<ViewUserGroupModalHeader
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ exports[`components/submenu_modal should match snapshot 1`] = `
|
|||||||
onHide={[Function]}
|
onHide={[Function]}
|
||||||
renderBackdrop={[Function]}
|
renderBackdrop={[Function]}
|
||||||
restoreFocus={true}
|
restoreFocus={true}
|
||||||
role="dialog"
|
role="none"
|
||||||
show={true}
|
show={true}
|
||||||
>
|
>
|
||||||
<ModalBody
|
<ModalBody
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ const SubMenuModal = ({
|
|||||||
onExited={onExited}
|
onExited={onExited}
|
||||||
enforceFocus={false}
|
enforceFocus={false}
|
||||||
id='submenuModal'
|
id='submenuModal'
|
||||||
role='dialog'
|
role='none'
|
||||||
>
|
>
|
||||||
<Modal.Body
|
<Modal.Body
|
||||||
data-testid={'SubMenuModalBody'}
|
data-testid={'SubMenuModalBody'}
|
||||||
|
|||||||
@@ -19,42 +19,42 @@ describe('components/widgets/modals/FullScreenModal', () => {
|
|||||||
</FullScreenModal>,
|
</FullScreenModal>,
|
||||||
);
|
);
|
||||||
expect(wrapper).toMatchInlineSnapshot(`
|
expect(wrapper).toMatchInlineSnapshot(`
|
||||||
<CSSTransition
|
<CSSTransition
|
||||||
appear={true}
|
appear={true}
|
||||||
classNames="FullScreenModal"
|
classNames="FullScreenModal"
|
||||||
in={true}
|
in={true}
|
||||||
mountOnEnter={true}
|
mountOnEnter={true}
|
||||||
timeout={100}
|
timeout={100}
|
||||||
unmountOnExit={true}
|
unmountOnExit={true}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
aria-label="test"
|
aria-label="test"
|
||||||
aria-modal={true}
|
aria-modal={true}
|
||||||
className="FullScreenModal"
|
className="FullScreenModal"
|
||||||
role="dialog"
|
role="none"
|
||||||
tabIndex={-1}
|
tabIndex={-1}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
aria-label="Close"
|
aria-label="Close"
|
||||||
className="close-x"
|
className="close-x"
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
>
|
>
|
||||||
<CloseIcon
|
<CloseIcon
|
||||||
id="closeIcon"
|
id="closeIcon"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
test
|
test
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
"display": "none",
|
"display": "none",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
/>
|
/>
|
||||||
</CSSTransition>
|
</CSSTransition>
|
||||||
`);
|
`);
|
||||||
});
|
});
|
||||||
test('not showing content', () => {
|
test('not showing content', () => {
|
||||||
const wrapper = shallowWithIntl(
|
const wrapper = shallowWithIntl(
|
||||||
@@ -67,42 +67,42 @@ describe('components/widgets/modals/FullScreenModal', () => {
|
|||||||
</FullScreenModal>,
|
</FullScreenModal>,
|
||||||
);
|
);
|
||||||
expect(wrapper).toMatchInlineSnapshot(`
|
expect(wrapper).toMatchInlineSnapshot(`
|
||||||
<CSSTransition
|
<CSSTransition
|
||||||
appear={true}
|
appear={true}
|
||||||
classNames="FullScreenModal"
|
classNames="FullScreenModal"
|
||||||
in={false}
|
in={false}
|
||||||
mountOnEnter={true}
|
mountOnEnter={true}
|
||||||
timeout={100}
|
timeout={100}
|
||||||
unmountOnExit={true}
|
unmountOnExit={true}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
aria-label="test"
|
aria-label="test"
|
||||||
aria-modal={true}
|
aria-modal={true}
|
||||||
className="FullScreenModal"
|
className="FullScreenModal"
|
||||||
role="dialog"
|
role="none"
|
||||||
tabIndex={-1}
|
tabIndex={-1}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
aria-label="Close"
|
aria-label="Close"
|
||||||
className="close-x"
|
className="close-x"
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
>
|
>
|
||||||
<CloseIcon
|
<CloseIcon
|
||||||
id="closeIcon"
|
id="closeIcon"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
test
|
test
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
"display": "none",
|
"display": "none",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
/>
|
/>
|
||||||
</CSSTransition>
|
</CSSTransition>
|
||||||
`);
|
`);
|
||||||
});
|
});
|
||||||
test('with back icon', () => {
|
test('with back icon', () => {
|
||||||
const wrapper = shallowWithIntl(
|
const wrapper = shallowWithIntl(
|
||||||
@@ -116,51 +116,51 @@ describe('components/widgets/modals/FullScreenModal', () => {
|
|||||||
</FullScreenModal>,
|
</FullScreenModal>,
|
||||||
);
|
);
|
||||||
expect(wrapper).toMatchInlineSnapshot(`
|
expect(wrapper).toMatchInlineSnapshot(`
|
||||||
<CSSTransition
|
<CSSTransition
|
||||||
appear={true}
|
appear={true}
|
||||||
classNames="FullScreenModal"
|
classNames="FullScreenModal"
|
||||||
in={true}
|
in={true}
|
||||||
mountOnEnter={true}
|
mountOnEnter={true}
|
||||||
timeout={100}
|
timeout={100}
|
||||||
unmountOnExit={true}
|
unmountOnExit={true}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
aria-label="test"
|
aria-label="test"
|
||||||
aria-modal={true}
|
aria-modal={true}
|
||||||
className="FullScreenModal"
|
className="FullScreenModal"
|
||||||
role="dialog"
|
role="none"
|
||||||
tabIndex={-1}
|
tabIndex={-1}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
aria-label="Back"
|
aria-label="Back"
|
||||||
className="back"
|
className="back"
|
||||||
onClick={[MockFunction]}
|
onClick={[MockFunction]}
|
||||||
>
|
>
|
||||||
<BackIcon
|
<BackIcon
|
||||||
id="backIcon"
|
id="backIcon"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
aria-label="Close"
|
aria-label="Close"
|
||||||
className="close-x"
|
className="close-x"
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
>
|
>
|
||||||
<CloseIcon
|
<CloseIcon
|
||||||
id="closeIcon"
|
id="closeIcon"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
test
|
test
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
style={
|
style={
|
||||||
Object {
|
Object {
|
||||||
"display": "none",
|
"display": "none",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
/>
|
/>
|
||||||
</CSSTransition>
|
</CSSTransition>
|
||||||
`);
|
`);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('close on close icon click', () => {
|
test('close on close icon click', () => {
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ class FullScreenModal extends React.PureComponent<Props> {
|
|||||||
aria-modal={true}
|
aria-modal={true}
|
||||||
aria-label={this.props.ariaLabel}
|
aria-label={this.props.ariaLabel}
|
||||||
aria-labelledby={this.props.ariaLabelledBy}
|
aria-labelledby={this.props.ariaLabelledBy}
|
||||||
role='dialog'
|
role='none'
|
||||||
>
|
>
|
||||||
{this.props.onGoBack &&
|
{this.props.onGoBack &&
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ export class GenericModal extends React.PureComponent<Props, State> {
|
|||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
id={this.props.id}
|
id={this.props.id}
|
||||||
role='dialog'
|
role='none'
|
||||||
aria-label={this.props.ariaLabel}
|
aria-label={this.props.ariaLabel}
|
||||||
aria-labelledby={this.props.ariaLabel ? undefined : 'genericModalLabel'}
|
aria-labelledby={this.props.ariaLabel ? undefined : 'genericModalLabel'}
|
||||||
dialogClassName={classNames(
|
dialogClassName={classNames(
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user