MM-58183 Post Error Style Fixes (#27015)

* fix alignment of error messages and consistent font size with typing message

* fix lint issues

* Remove unused CSS class from div

---------

Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
This commit is contained in:
Matthew Birtch
2024-05-28 18:03:39 -04:00
committed by GitHub
parent 51e9092da6
commit 96825e23d8
4 changed files with 17 additions and 21 deletions

View File

@@ -169,8 +169,7 @@
display: flex;
flex-direction: column;
padding: 0 24px;
font-size: 13px;
gap: 8px;
font-size: 12px;
.help__text {
text-align: right;
@@ -181,20 +180,18 @@
}
}
&--has-error {
padding: 6px 0 0;
color: var(--error-text);
}
.has-error,
.post-error {
position: absolute;
top: 4px;
display: inline-block;
margin-bottom: 0;
font-size: 0.85em;
font-weight: normal;
margin: 4px 0 0 0;
color: var(--error-text);
label {
margin: 0;
color: var(--error-text);
}
}
}
}
@media screen and (max-width: 768px) {
@@ -235,8 +232,8 @@
overflow: hidden;
height: 20px;
margin-bottom: 5px;
font-size: 11px;
opacity: 0.7;
color: rgba(var(--center-channel-color-rgb), 0.75);
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap;
}

View File

@@ -754,7 +754,7 @@ const AdvanceTextEditor = ({
<div
id='postCreateFooter'
role='form'
className={classNames('AdvancedTextEditor__footer', {'AdvancedTextEditor__footer--has-error': postError || serverError})}
className='AdvancedTextEditor__footer'
>
{postError && (
<label className={classNames('post-error', {errorClass})}>

View File

@@ -189,10 +189,10 @@
max-width: 100%;
height: 20px;
margin: 2px 0;
color: rgba(var(--center-channel-color-rgb), 0.75);
float: left;
font-size: 11px;
font-size: 12px;
line-height: 16px;
opacity: 0.7;
}
.post-right-comments-upload-in-progress {

View File

@@ -424,10 +424,9 @@
overflow: hidden;
height: 20px;
margin: 2px 0;
color: var(--center-channel-color);
font-size: 11px;
color: rgba(var(--center-channel-color-rgb), 0.75);
font-size: 12px;
line-height: 16px;
opacity: 0.7;
text-overflow: ellipsis;
white-space: nowrap;
}