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

Dark keybinding indicator when used with emphasis #5351

Closed
alondahari opened this issue Dec 4, 2024 · 4 comments · Fixed by #5414
Closed

Dark keybinding indicator when used with emphasis #5351

alondahari opened this issue Dec 4, 2024 · 4 comments · Fixed by #5414
Assignees
Labels
bug Something isn't working component: Button Issues related to the Button component react size: pebble

Comments

@alondahari
Copy link
Contributor

Description

This is a recent regression introduced in the latest version.

We're seeing an issue with how the keybindings indicator on the Button component looks in Issues.

Image

There is currently no way that we see that we can use keybinding hint component with a primary button.

Steps to reproduce

  1. Add a KeybindingHint to a primary button
  2. With onEmphasis, it has a dark background. With normal variant, it has a dark fore colour.

Image

Version

v37.6.0

Browser

Chrome

@alondahari alondahari added the bug Something isn't working label Dec 4, 2024
Copy link
Contributor

github-actions bot commented Dec 4, 2024

Uh oh! @alondahari, the image you shared is missing helpful alt text. Check your issue body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

🤖 Beep boop! This comment was added automatically by github/accessibility-alt-text-bot.

@francinelucca
Copy link
Member

Summary:
This is an intended change resulting from #4759. New designs are in the making and the reporting team will workaround with style overrides for now

@francinelucca
Copy link
Member

TODO: once a fix for this is released, go back and "revert" workaround

@joshblack joshblack added the component: Button Issues related to the Button component label Dec 4, 2024
@RJohnPaul
Copy link

Here is a potential solution that you can consider for the issue Dark keybinding indicator when used with emphasis:

Solution
The issue seems to stem from the CSS styling applied to the KeybindingHint component when used with a primary button. To fix this, you can override the default styles by adding custom styles specifically for the KeybindingHint component when it's used with the primary button. Here is an example of how you can achieve this:

CSS
/* Add this CSS to your stylesheet /
.primary-button .keybinding-hint {
color: #fff; /
Adjust the color as needed /
background-color: #005cc5; /
Adjust the background color as needed /
/
Add any other necessary styles */
}
Steps to Apply the Fix
Locate the stylesheet where you define custom styles for your project.
Add the above CSS rules to the stylesheet.
Ensure that the styles are correctly applied by refreshing the page and checking the KeybindingHint component on the primary button.
Comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component: Button Issues related to the Button component react size: pebble
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants