Skip to content

Color Generator not updating main color when replacing with a value without hashtag #1507

Closed
@noahhorlacher

Description

@noahhorlacher

Describe the bug
On the ionic color generator page, the corresponding '-shade' and '-tint' sub-variables don't update when replacing a hexcode in the main variable input fields with a value missing the hashtag.

To reproduce
Steps to reproduce the behavior:

  1. Go to 'https://ionicframework.com/docs/theming/color-generator'
  2. Click on the arrow to the right of any color input field such as 'Primary' to see the sub-variables
  3. Select the current value (click on the input field and press CTRL+A) including the hashtag
  4. Paste a hex code value missing the hashtag e.g. ff0000
  5. The site auto-inserts the hashtag at the beginning, but doesn't auto-update the colors and values of the sub-variables, until you type in another character. It also doesn't update if it's not in focus anymore.

Expected behavior
After the site prepends a hashtag to the value, it's expected to auto-update the sub-variables.

Screenshots
screenshot

Browser and OS

  • OS: Ubuntu 20.04 LTS
  • Browser: Firefox, Google Chrome
  • Version: 77.0.1, 83.0.4103.116

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues related to bugs on the documentation website

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions