Fix widget permission tooltip style rules by applying the naming policy properly (#10916)

This commit is contained in:
Suguru Hirahara 2023-05-17 08:51:18 +00:00 committed by GitHub
parent ae0fe051b0
commit 7917d973e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 18 deletions

View file

@ -53,8 +53,9 @@ limitations under the License.
mask-image: url("$(res)/img/feather-customised/help-circle.svg");
}
}
}
.mx_AppPermission_tooltip {
.mx_Tooltip.mx_Tooltip--appPermission {
box-shadow: none;
background-color: $tooltip-timeline-bg-color;
color: $tooltip-timeline-fg-color;
@ -62,7 +63,7 @@ limitations under the License.
border-radius: 3px;
padding: 6px 8px;
&.mx_AppPermission_tooltip--dark {
&.mx_Tooltip--appPermission--dark {
.mx_Tooltip_chevron::after {
border-right-color: $tooltip-timeline-bg-color;
}
@ -73,5 +74,4 @@ limitations under the License.
padding-left: 2px;
margin-left: 0;
}
}
}

View file

@ -115,7 +115,7 @@ export default class AppPermission extends React.Component<IProps, IState> {
const warningTooltip = (
<TextWithTooltip
tooltip={warningTooltipText}
tooltipClass="mx_AppPermission_tooltip mx_AppPermission_tooltip--dark"
tooltipClass="mx_Tooltip--appPermission mx_Tooltip--appPermission--dark"
>
<span className="mx_AppPermission_helpIcon" />
</TextWithTooltip>