Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7a250f4

Browse files
authored
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
1 parent b77b2df commit 7a250f4

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

res/css/views/rooms/wysiwyg_composer/_SendWysiwygComposer.pcss

-7
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,3 @@ limitations under the License.
8484
border-color: $quaternary-content;
8585
}
8686
}
87-
88-
.mx_SendWysiwygComposer_AutoCompleteWrapper {
89-
position: relative;
90-
> .mx_Autocomplete {
91-
min-width: 100%;
92-
}
93-
}

res/css/views/rooms/wysiwyg_composer/components/_Editor.pcss

+13
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,16 @@ limitations under the License.
146146
color: $tertiary-content;
147147
}
148148
}
149+
150+
.mx_WysiwygComposer_AutoCompleteWrapper {
151+
position: relative;
152+
153+
/* Due to the fact that editing a message now has a larger amount of grey
154+
colour above it (due to the rich text buttons above the composer), we need
155+
to give the autocomplete a bit more visual separation by using a border.
156+
*/
157+
> .mx_Autocomplete {
158+
border: 1px solid $quinary-content;
159+
border-radius: 8px;
160+
}
161+
}

src/components/views/rooms/wysiwyg_composer/components/WysiwygAutocomplete.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const WysiwygAutocomplete = forwardRef(
119119
}
120120

121121
return room ? (
122-
<div className="mx_SendWysiwygComposer_AutoCompleteWrapper" data-testid="autocomplete-wrapper">
122+
<div className="mx_WysiwygComposer_AutoCompleteWrapper" data-testid="autocomplete-wrapper">
123123
<Autocomplete
124124
ref={ref}
125125
query={buildQuery(suggestion)}

0 commit comments

Comments
 (0)