Skip to content

Visual states not working properly when the animation is canceled in Android #1905

Closed

Description

@tzraikov
  1. Add a highlighted state animation and set it to a button:

.button {
background-color: green;
}

.button:highlighted {
animation-name: highlight;
animation-duration: 2s;
animation-fill-mode: forwards;
}

@Keyframes highlight {
from { background-color: yellow; }
to { background-color: red; }
}

  1. Play the animation by touching the button.
  2. Touch up before the animation ends. The button will remain in some undetermined state. The correct behavior is to reset its background to green (like in iOS).

Activity

  1. self-assigned this
    on Apr 7, 2016
  2. added
    ready for testTSC needs to test this and confirm against live production apps and automated test suites
    and removed on Apr 7, 2016
  3. added and removed
    ready for testTSC needs to test this and confirm against live production apps and automated test suites
    on Apr 11, 2016
  4. added this to the 2.0.0 milestone on Apr 11, 2016
  5. lock commented on Aug 30, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  6. locked and limited conversation to collaborators on Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions