Skip to content

Commit

Permalink
[#55581] add exemplary user hover card to lookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
EinLama committed Nov 28, 2024
1 parent 9c47122 commit f4a5b11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Binary file added app/assets/images/lookbook/user_hover_card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion lookbook/docs/patterns/25-hover-cards.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ The HoverCard is a pattern related to the `Primer::Beta::Popover` and is used to

## Overview

![Exemplary hover card](<%= image_path('lookbook/hover_card.png') %>)
![Exemplary work package hover card](<%= image_path('lookbook/hover_card.png') %>)

![Exemplary user hover card](<%= image_path('lookbook/user_hover_card.png') %>)

## Anatomy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
module OpenProject::Users
# @logical_path OpenProject/Users
class AvatarComponentPreview < Lookbook::Preview
# Renders a user avatar using the OpenProject opce-principal web component
# Renders a user avatar using the OpenProject opce-principal web component. Note that the hover card options
# have no effect in this lookbook.
# @param size select { choices: [default, medium, mini] }
# @param link toggle
# @param show_name toggle
Expand Down

0 comments on commit f4a5b11

Please sign in to comment.