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 tooltips over edit, add, delete buttons #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nkzarrabi
Copy link

@nkzarrabi nkzarrabi commented Oct 30, 2024

Fixes #8

Add styled tooltips for edit, add, and delete buttons in src/components/MicMasterFlex.tsx.

  • Wrap the edit, add, and delete buttons in a div with class relative group.
  • Add a div with class absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-max bg-black text-white text-xs rounded py-1 px-2 opacity-0 group-hover:opacity-100 transition-opacity for each button to display the tooltip text.
  • Retain the title attribute for basic tooltips.

For more details, open the Copilot Workspace session.

Fixes nicolasperez19#8

Add styled tooltips for edit, add, and delete buttons in `src/components/MicMasterFlex.tsx`.

* Wrap the edit, add, and delete buttons in a `div` with class `relative group`.
* Add a `div` with class `absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-max bg-black text-white text-xs rounded py-1 px-2 opacity-0 group-hover:opacity-100 transition-opacity` for each button to display the tooltip text.
* Retain the `title` attribute for basic tooltips.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/nicolasperez19/mic-master-flex/issues/8?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tooltip over edit, add, delete buttons so it's known what they do
1 participant