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

Commit

Permalink
fix color of location share caret (#7917)
Browse files Browse the repository at this point in the history
Signed-off-by: Kerry Archibald <kerrya@element.io>
  • Loading branch information
Kerry authored Mar 1, 2022
1 parent 4bf42ba commit 36adba1
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 10 deletions.
17 changes: 16 additions & 1 deletion res/css/views/location/_LocationPicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,22 @@ limitations under the License.
.mx_MLocationBody_pointer {
position: absolute;
bottom: -3px;
left: 12px;
left: 11px;
width: 9px;
height: 5px;

&::before {
mask-image: url('$(res)/img/location/pointer.svg');
mask-position: center;
mask-repeat: no-repeat;
mask-size: 9px;
content: '';
display: inline-block;
width: 9px;
height: 5px;
position: absolute;
background-color: $accent;
}
}
}

Expand Down
17 changes: 16 additions & 1 deletion res/css/views/messages/_MLocationBody.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,22 @@ limitations under the License.
.mx_MLocationBody_pointer {
position: absolute;
bottom: -3px;
left: 12px;
left: 11px;
width: 9px;
height: 5px;

&::before {
mask-image: url('$(res)/img/location/pointer.svg');
mask-position: center;
mask-repeat: no-repeat;
mask-size: 9px;
content: '';
display: inline-block;
width: 9px;
height: 5px;
position: absolute;
background-color: $accent;
}
}

.mx_MLocationBody_markerContents {
Expand Down
5 changes: 1 addition & 4 deletions src/components/views/location/LocationPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,8 @@ class LocationPicker extends React.Component<IProps, IState> {
viewUserOnClick={false}
/>
</div>
<img
<div
className="mx_MLocationBody_pointer"
src={require("../../../../res/img/location/pointer.svg")}
width="9"
height="5"
/>
</div>
</div>
Expand Down
5 changes: 1 addition & 4 deletions src/components/views/messages/MLocationBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,8 @@ export function LocationBodyContent(props: ILocationBodyContentProps):
<div className="mx_MLocationBody_markerBorder">
{ markerContents }
</div>
<img
<div
className="mx_MLocationBody_pointer"
src={require("../../../../res/img/location/pointer.svg")}
width="9"
height="5"
/>
</div>
{
Expand Down

0 comments on commit 36adba1

Please sign in to comment.