Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

:focus style not removed from selected (enlarged) chip after user interaction #10

@kriscooke

Description

@kriscooke

Expected behavior

On :hover and :focus over a color chip, there is a scale transform applied to transiently enlarge the color chip that is being hovered/focused. The .color:focus:after transform should be removed (along with the focus) once a color has been selected through user interaction.

Actual behavior:

After user interaction, the selected chip remains enlarged. It stays this way even after programmatically changing to a new color and re-opening the color menu - which makes it appear that the wrong color is selected.

Live Demo

http://jsbin.com/xaforakega/edit?html,output

Steps to reproduce

  1. Select a color chip in the color picker.
  2. Programmatically change the color by clicking the "Change Color" button
  3. Open the color menu again by clicking on the picker icon.
  4. Notice that the previously selected color chip is still enlarged.
  5. Blur the focus by clicking outside of the color menu.
  6. The .color:focus:after transform is finally removed (chip becomes same size as the others).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions