Update rte autocomplete styling (#10503)
* amend className to reflect usage * move new class into file used by Send/Edit composers * add border styling to autocomplete
This commit is contained in:
parent
b77b2df29b
commit
7a250f41ac
3 changed files with 14 additions and 8 deletions
|
@ -84,10 +84,3 @@ limitations under the License.
|
||||||
border-color: $quaternary-content;
|
border-color: $quaternary-content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_SendWysiwygComposer_AutoCompleteWrapper {
|
|
||||||
position: relative;
|
|
||||||
> .mx_Autocomplete {
|
|
||||||
min-width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -146,3 +146,16 @@ limitations under the License.
|
||||||
color: $tertiary-content;
|
color: $tertiary-content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_WysiwygComposer_AutoCompleteWrapper {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
/* Due to the fact that editing a message now has a larger amount of grey
|
||||||
|
colour above it (due to the rich text buttons above the composer), we need
|
||||||
|
to give the autocomplete a bit more visual separation by using a border.
|
||||||
|
*/
|
||||||
|
> .mx_Autocomplete {
|
||||||
|
border: 1px solid $quinary-content;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -119,7 +119,7 @@ const WysiwygAutocomplete = forwardRef(
|
||||||
}
|
}
|
||||||
|
|
||||||
return room ? (
|
return room ? (
|
||||||
<div className="mx_SendWysiwygComposer_AutoCompleteWrapper" data-testid="autocomplete-wrapper">
|
<div className="mx_WysiwygComposer_AutoCompleteWrapper" data-testid="autocomplete-wrapper">
|
||||||
<Autocomplete
|
<Autocomplete
|
||||||
ref={ref}
|
ref={ref}
|
||||||
query={buildQuery(suggestion)}
|
query={buildQuery(suggestion)}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue