MM-64232 - adjust disabled styles channel settings modal (#30984)
* MM-64232 - adjust disabled styles channel settings modal * fix styles * adjust snapshot --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
exports[`components/TextBox should match snapshot with additional, optional props 1`] = `
|
exports[`components/TextBox should match snapshot with additional, optional props 1`] = `
|
||||||
<div
|
<div
|
||||||
className="textarea-wrapper textarea-wrapper-preview"
|
className="textarea-wrapper textarea-wrapper-preview textarea-wrapper-preview--disabled"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="form-control custom-textarea textbox-preview-area"
|
className="form-control custom-textarea textbox-preview-area"
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ export default class Textbox extends React.PureComponent<Props> {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={this.wrapper}
|
ref={this.wrapper}
|
||||||
className={classNames('textarea-wrapper', {'textarea-wrapper-preview': this.props.preview})}
|
className={classNames('textarea-wrapper', {'textarea-wrapper-preview': this.props.preview, 'textarea-wrapper-preview--disabled': Boolean(this.props.preview && this.props.disabled)})}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
tabIndex={this.props.tabIndex}
|
tabIndex={this.props.tabIndex}
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
border: 1px solid rgba(var(--center-channel-color-rgb), 0.16);
|
border: 1px solid rgba(var(--center-channel-color-rgb), 0.16);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: rgba(var(--center-channel-color-rgb), 0.48);
|
border-color: rgba(var(--center-channel-color-rgb), 0.48);
|
||||||
@@ -61,7 +62,14 @@
|
|||||||
border-color: var(--button-bg);
|
border-color: var(--button-bg);
|
||||||
box-shadow: inset 0 0 0 1px var(--button-bg);
|
box-shadow: inset 0 0 0 1px var(--button-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.textarea-wrapper-preview--disabled {
|
||||||
|
cursor: not-allowed;
|
||||||
|
opacity: 0.6;
|
||||||
|
&:hover {
|
||||||
|
border: 1px solid rgba(var(--center-channel-color-rgb), 0.16);
|
||||||
|
}
|
||||||
|
}
|
||||||
// forcing this styles since textarea has ohter styles that affect the post input, so keeping it here isolated inside advanced textbox
|
// forcing this styles since textarea has ohter styles that affect the post input, so keeping it here isolated inside advanced textbox
|
||||||
.textarea--has-errors{
|
.textarea--has-errors{
|
||||||
border-color: var(--error-text) !important;
|
border-color: var(--error-text) !important;
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ const AdvancedTextbox = ({
|
|||||||
hasError={hasError}
|
hasError={hasError}
|
||||||
onFocus={handleFocus}
|
onFocus={handleFocus}
|
||||||
onBlur={handleBlur}
|
onBlur={handleBlur}
|
||||||
|
disabled={readOnly}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{!readOnly && value.trim().length > 0 && (
|
{!readOnly && value.trim().length > 0 && (
|
||||||
|
|||||||
@@ -66,6 +66,12 @@
|
|||||||
textarea {
|
textarea {
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-control[disabled] {
|
||||||
|
background: none;
|
||||||
|
cursor: not-allowed;
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.Input_limit-exceeded {
|
.Input_limit-exceeded {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user