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

Use alternative hover and active on dark Cards #2469

Merged
merged 2 commits into from
Sep 12, 2022

Conversation

jkaltoft
Copy link
Collaborator

@jkaltoft jkaltoft commented Sep 8, 2022

Which issue does this PR close?

This PR closes #2443

What is the new behavior?

This enhancement lets users specify if card has a dark background color. If true the interaction states :hover and :active will be lighter and louder instead of the default "make it darker" and and more subtle "less loud".

Disclaimer: This is almost a one-off thing and the implementation does not allow for any flexibility. It's either or. Users also has to apply the property themselves - it does not apply automagically.

Does this PR introduce a breaking change?

  • Yes
  • No

Are there any additional context?

Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Reminders

  • Make sure you have implemented tests following the guidelines in: "The good: Test".
  • Make sure you have updated the cookbook with examples and showcases (for bug fixes, enhancements & new components).

Review

  • Do a self-review.
  • Request that the changes are code-reviewed
  • Request that the changes are UX reviewed (only necessary if your PR introduces visual changes)

When the pull request has been approved it will be merged to develop by Team Kirby.

Let users specify if card has a dark background color. If true the
interaction states :hover and :active will be lighter and louder instead
of the default "make it darker" and "less loud" (more subtle effect).
@jkaltoft jkaltoft marked this pull request as ready for review September 8, 2022 13:26
@github-actions github-actions bot temporarily deployed to pr-2443-card-expose-options September 8, 2022 13:31 Inactive
Copy link
Collaborator

@RasmusKjeldgaard RasmusKjeldgaard left a comment

Choose a reason for hiding this comment

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

LGTM!

@jkaltoft jkaltoft merged commit 5431691 into release/v7.0.0 Sep 12, 2022
@jkaltoft jkaltoft deleted the feature/2443-card-expose-options branch September 12, 2022 11:01
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.

[Enhancement] Card - Expose options to control lighten/darken background and loudness level
2 participants