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

Active state for ionic components and special cases #2207

Conversation

RasmusKjeldgaard
Copy link
Collaborator

@RasmusKjeldgaard RasmusKjeldgaard commented May 2, 2022

Which issue does this PR close?

This PR closes #2197 fixes #2198

What is the new behavior?

An ionic-specific mixin has been created for those of ionics components that use the --background-activated and --background-activated-opacity approach.

Unfortunately that is not the case for all Ionics components so custom approaches has been implemented for those and some of our non-ionic based components.

Does this PR introduce a breaking change?

  • Yes
  • No

Active state should not be overwritten for selectable items, it should follow the same conventions as any other component. If item has selectable="true" we want to make sure it has the appropriate active state.

For most, migration should be fairly simple - just remove --kirby-item-background-activated-related CSS.

Checklist:

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

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 automatically merged to stable via automerge.

Active state should not be overwritable. If item is selectable
we want to make sure it has active state.
Some custom functionality for hover was also rewritten to use existing
util function get-state-color.
@RasmusKjeldgaard RasmusKjeldgaard changed the title Active Active state for ionic components and special cases May 2, 2022
@github-actions github-actions bot temporarily deployed to pr-2197-ionic-flavour-apply-active-mixin May 2, 2022 09:19 Inactive
@jkaltoft jkaltoft self-requested a review May 2, 2022 09:54
Copy link
Collaborator

@jkaltoft jkaltoft left a comment

Choose a reason for hiding this comment

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

giphub

@RasmusKjeldgaard RasmusKjeldgaard merged commit acfea4f into release/theme/interaction-states-and-attention-levels May 2, 2022
@RasmusKjeldgaard RasmusKjeldgaard deleted the enhancement/2197-ionic-flavour-apply-active-mixin branch May 2, 2022 10:07
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