Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add icon label to icon and text hover label #342

Open
agjohnson opened this issue Apr 23, 2024 · 0 comments
Open

Add icon label to icon and text hover label #342

agjohnson opened this issue Apr 23, 2024 · 0 comments
Labels
Accepted Accepted issue on our roadmap Feature New feature

Comments

@agjohnson
Copy link
Contributor

agjohnson commented Apr 23, 2024

One pattern I've wanted in a few places -- the project search dropdown, the project listing view, etc -- is an icon label that expands out to a full icon/text label. This is not a native FUI element.

This could be pure CSS I feel, but if that feels hard, this might be easiest as a web component.

In an unhovered state, the label would be the equivalent of:

<div class="ui icon green circular label">
  <i class="fas fa-check icon"></i>
</div>

image

In a hovered state, the label would expand to the equivalent of:

<div class="ui green circular label">
  <i class="fas fa-check icon"></i>
  Active
</div>

image

It's probably possible to do this with pure CSS, though might get pretty deep into CSS to achieve this. It might be possible to make this a web component too, and simply add the text/class on hover. Either way there should be a nice transition on the size change.

@agjohnson agjohnson added Accepted Accepted issue on our roadmap Feature New feature labels Apr 23, 2024
@agjohnson agjohnson added this to the New dashboard features milestone Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant