Skip to content

Added hover color to console "Clear" button #2596

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

Conversation

johnmic007
Copy link

@johnmic007 johnmic007 commented Nov 12, 2023

Fixes #2592

Changes: made hover color in clear button

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123

Copy link

welcome bot commented Nov 12, 2023

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already.

padding-right: #{10 / $base-font-size}rem;
.preview-console--collapsed & {
display: none;
}
}

.preview-console__clear:hover {

background-color: rgba(45, 38, 38, 0.345);
Copy link
Collaborator

Choose a reason for hiding this comment

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

We generally don't hard-code colors in the CSS because we have three different themes. What looks good on dark might not look good on light and vice-versa. You would want to use a value from the theme with getThemifyVariable. If you need a new color value that's not already defined then you need to add it to all three themes.

.preview-console__clear:hover {

background-color: rgba(45, 38, 38, 0.345);
border-radius: 20px;
Copy link
Collaborator

Choose a reason for hiding this comment

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

You don't need this here since you already added a border-radius to element via line 95.


background-color: rgba(45, 38, 38, 0.345);
border-radius: 20px;
padding: x 5px ;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks like a mistake.

@lindapaiste lindapaiste changed the title hover button colour made change Added hover color to console "Clear" button Nov 12, 2023
@raclim
Copy link
Collaborator

raclim commented Jan 16, 2024

Since it's been a while since this PR has been updated, I've marked it with a "closing soon" label, which signifies that this PR will be closed in 10 days. Please feel free to revisit this to make any further updates or indicate that you would like to keep this open!

@raclim raclim closed this Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Insufficient hover effect on console Clear button
3 participants