Skip to content

Added hover effect#19

Open
harise01 wants to merge 1 commit into
mainfrom
titlehover
Open

Added hover effect#19
harise01 wants to merge 1 commit into
mainfrom
titlehover

Conversation

@harise01

Copy link
Copy Markdown
Contributor

No description provided.

return (
<div
className={`flex flex-col justify-center rounded border ${borderColour} bg-white px-3 py-2 shadow-sm transition-opacity duration-150`}
className={`title flex flex-col justify-center rounded border ${borderColour} bg-white px-3 py-2 shadow-sm transition-opacity duration-150`}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe title is misplaced in the classname line here since there's no tailwind title class or custom .title style rule, for the tooltip to work it just needs the title={data.title} line below (which is working as intended, great)

Just remove title from the start of className and this PR should be good to merge

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.

2 participants