Skip to content

Commit 953da1a

Browse files
authored
Remove _RoleButton.pcss (matrix-org#10958)
* Remove obsolete style rules These have been obsolete since 3c5c2be. * Remove _RoleButton.pcss mx_RoleButton_tooltip style rules are used only on NotificationBadge.tsx. * Rename the class
1 parent 02bf39c commit 953da1a

File tree

4 files changed

+8
-35
lines changed

4 files changed

+8
-35
lines changed

res/css/_components.pcss

-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@
196196
@import "./views/elements/_ReplyChain.pcss";
197197
@import "./views/elements/_ResizeHandle.pcss";
198198
@import "./views/elements/_RichText.pcss";
199-
@import "./views/elements/_RoleButton.pcss";
200199
@import "./views/elements/_RoomAliasField.pcss";
201200
@import "./views/elements/_SSOButtons.pcss";
202201
@import "./views/elements/_SearchWarning.pcss";

res/css/views/elements/_RoleButton.pcss

-33
This file was deleted.

res/css/views/rooms/_NotificationBadge.pcss

+7
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,10 @@ limitations under the License.
6969
}
7070
}
7171
}
72+
73+
.mx_NotificationBadge_tooltip {
74+
display: inline-block;
75+
position: relative;
76+
top: -25px;
77+
left: 6px;
78+
}

src/components/views/rooms/NotificationBadge.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default class NotificationBadge extends React.PureComponent<XOR<IProps, I
123123
let tooltip: JSX.Element | undefined;
124124
if (showUnsentTooltip && this.state.showTooltip && notification.color === NotificationColor.Unsent) {
125125
label = _t("Message didn't send. Click for info.");
126-
tooltip = <Tooltip className="mx_RoleButton_tooltip" label={label} />;
126+
tooltip = <Tooltip className="mx_NotificationBadge_tooltip" label={label} />;
127127
}
128128

129129
return (

0 commit comments

Comments
 (0)