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

Issue #105: Fixed text color while hovering buttons on SingleCard #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/components/SingleCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ const SingleCard = (props) => {
<Button
variant="outline-info"
onClick={() => setOpen(!openIssues)}
style={{
'-webkit-text-stroke': '0.4px black'
Copy link
Owner

Choose a reason for hiding this comment

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

are we sure about using webkit? Can it cause issues in any of the browsers?

Copy link
Author

Choose a reason for hiding this comment

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

I was going by this:
Screenshot 2024-05-22 015649

This is on the containing div of the Card. Using WebkitTextStroke, shorthand for -webkit-text-stroke. Changing that to being black on the button using:
style={{'-webkit-text-stroke': '0.4px black'}}

It seems to work in all browsers I have tested.

Should I be looking elsewhere?

}}
>
Go To Issues
</Button>
Expand Down