Skip to content

[color-picker] shorthand RGB hex should be accepted with alpha-channel #11187

@jcfranco

Description

@jcfranco

Check existing issues

Actual Behavior

Shorthand RGB hex is no longer expanded when the input is blurred.

Expected Behavior

Shorthand hex should be accepted regardless of alpha channel being present or not.

Reproduction Sample

https://codepen.io/jcfranco/pen/pvzWmaq?editors=100

Reproduction Steps

  1. click on hex input
  2. select all text
  3. type any shorthand rgb hex (e.g., abc)
  4. blur input
  5. notice original value is restored

Reproduction Version

2.13.2

Relevant Info

Looks like this was introduced in #9701.

Regression?

2.10.1

Priority impact

impact - p3 - not time sensitive

Impact

This might affect users that assume blurring inputs will expand shorthand hex values.

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/calcite-ui-icons
  • @esri/eslint-plugin-calcite-components

Esri team

Calcite (dev)

Metadata

Metadata

Labels

4 - verifiedIssues that have been tested, confirmed as mitigated, and are ready to close.Calcite (dev)Issues logged by Calcite developers.bugBug reports for broken functionality. Issues should include a reproduction of the bug.calcite-componentsIssues specific to the @esri/calcite-components package.estimate - 3A day or two of work, likely requires updates to tests.impact - p3 - not time sensitiveUser set priority impact status of p3 - not time sensitivep - highIssue should be addressed in the current milestone, impacts component or core functionalityregressionIssues that are caused by changes in a release, but were working before that.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions