MM-58349: Shared Channels in System Console (#28116)
Co-authored-by: Mattermost Build <build@mattermost.com> Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
02e6851603
Коммит
0f200adbe0
@@ -31,7 +31,7 @@ export type Props = {
|
||||
ariaLabel?: string;
|
||||
errorText?: string | React.ReactNode;
|
||||
compassDesign?: boolean;
|
||||
backdrop?: boolean;
|
||||
backdrop?: boolean | 'static';
|
||||
backdropClassName?: string;
|
||||
tabIndex?: number;
|
||||
children: React.ReactNode;
|
||||
@@ -40,6 +40,7 @@ export type Props = {
|
||||
headerInput?: React.ReactNode;
|
||||
bodyPadding?: boolean;
|
||||
bodyDivider?: boolean;
|
||||
bodyOverflowVisible?: boolean;
|
||||
footerContent?: React.ReactNode;
|
||||
footerDivider?: boolean;
|
||||
appendedContent?: React.ReactNode;
|
||||
@@ -180,7 +181,14 @@ export class GenericModal extends React.PureComponent<Props, State> {
|
||||
role='dialog'
|
||||
aria-label={this.props.ariaLabel}
|
||||
aria-labelledby={this.props.ariaLabel ? undefined : 'genericModalLabel'}
|
||||
dialogClassName={classNames('a11y__modal GenericModal', {GenericModal__compassDesign: this.props.compassDesign}, this.props.className)}
|
||||
dialogClassName={classNames(
|
||||
'a11y__modal GenericModal',
|
||||
{
|
||||
GenericModal__compassDesign: this.props.compassDesign,
|
||||
'modal--overflow': this.props.bodyOverflowVisible,
|
||||
},
|
||||
this.props.className,
|
||||
)}
|
||||
show={this.state.show}
|
||||
restoreFocus={true}
|
||||
enforceFocus={this.props.enforceFocus}
|
||||
@@ -204,7 +212,7 @@ export class GenericModal extends React.PureComponent<Props, State> {
|
||||
</>
|
||||
)}
|
||||
</Modal.Header>
|
||||
<Modal.Body className={classNames({divider: this.props.bodyDivider})}>
|
||||
<Modal.Body className={classNames({divider: this.props.bodyDivider, 'overflow-visible': this.props.bodyOverflowVisible})}>
|
||||
{this.props.compassDesign ? (
|
||||
this.props.errorText && (
|
||||
<div className='genericModalError'>
|
||||
|
||||
Ссылка в новой задаче
Block a user