Skip to content

Commit

Permalink
CrateHeader: Add tooltip to "Yanked" badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed May 3, 2023
1 parent 472d11e commit e8d6f9b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/components/crate-header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<span local-class="yanked-badge">
{{svg-jar "trash"}}
Yanked

<EmberTooltip>
This crate has been yanked, but it is still available for download for other crates that
may be depending on it.
</EmberTooltip>
</span>
{{/if}}
{{/if}}
Expand Down
1 change: 1 addition & 0 deletions app/components/crate-header.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
align-items: center;
gap: var(--space-3xs);
white-space: nowrap;
cursor: default;

svg {
width: 1em;
Expand Down
4 changes: 4 additions & 0 deletions app/styles/application.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,7 @@ noscript {
flex-direction: column;
padding: var(--main-layout-padding);
}

:global(.ember-tooltip) {
font-weight: normal;
}

0 comments on commit e8d6f9b

Please sign in to comment.