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

Conversation

sblevins-dev
Copy link

This was setting an override for the button text:

  • WebkitTextStroke: "0.4px white",

Left this code for the displaying the button as is. Added to the style of the button:

  • style={{'-webkit-text-stroke': '0.4px black'}}

Copy link

netlify bot commented May 21, 2024

Deploy Preview for find-me-issues-web-app ready!

Name Link
🔨 Latest commit 5cf8bd0
🔍 Latest deploy log https://app.netlify.com/sites/find-me-issues-web-app/deploys/664cc69cb6ecef000864361a
😎 Deploy Preview https://deploy-preview-107--find-me-issues-web-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented May 21, 2024

Deploy Preview for find-me-issues failed.

Name Link
🔨 Latest commit 5cf8bd0
🔍 Latest deploy log https://app.netlify.com/sites/find-me-issues/deploys/664cc69ca2dc090008d77c30

@@ -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?

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