Skip to content

Commit 674061e

Browse files
committed
CrateSidebar: Use Tooltip component
1 parent 6bacf93 commit 674061e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/components/crate-sidebar.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{{svg-jar "calendar"}}
1414
<span>
1515
{{date-format-distance-to-now @version.created_at addSuffix=true}}
16-
<EmberTooltip @text={{date-format @version.created_at 'PPP'}} />
16+
<Tooltip @text={{date-format @version.created_at 'PPP'}} />
1717
</span>
1818
</time>
1919

@@ -120,7 +120,7 @@
120120
Try on Rust Playground
121121

122122
{{#if this.canHover}}
123-
<EmberTooltip
123+
<Tooltip
124124
@text="The top 100 crates are available on the Rust Playground for you to try out directly in your browser." />
125125
{{/if}}
126126
</a>

app/components/crate-sidebar.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
.date,
3838
.msrv,
3939
.edition {
40-
[title], :global(.ember-tooltip-target) {
40+
> span {
4141
cursor: help;
4242
}
4343
}

0 commit comments

Comments
 (0)