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

Allow customization text color of keyboard shortcut #1012

Merged
merged 1 commit into from
Mar 14, 2022
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions apps/storybook/src/Customization.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,4 @@ as you see fit. For instance, if you'd like to change the color of the curve of
| Name | Default | Description |
| ----------------------------------------- | ----------- | -------------------------------- |
| `--h5w-interactionHelp-shortcut--bgColor` | `lightgray` | Background of keyboard shortcuts |
| `--h5w-interactionHelp-shortcut--color` | `inherit` | Text color of keyboard shortcuts |
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

.shortcut {
background-color: var(--h5w-interactionHelp-shortcut--bgColor, lightgray);
color: var(--h5w-interactionHelp-shortcut--color, inherit);
padding: 0.25rem;
border-radius: 0.25rem;
flex-grow: 0;
Expand Down