eui icon indicating copy to clipboard operation
eui copied to clipboard

[EuiBadge] Prevent color opacity

Open thompsongl opened this issue 5 years ago • 5 comments

Per discussion in #2850, now that we've opened up EuiColorPicker to opacity we may want to do more than give console warnings for invalid color input. For instance, 8-digit hex values are still renderable by EuiBadge but are not desirable and can cause contrast failures.

#2804 is related for validation reasons

Solutions:

  • Set alpha channel to 1 regardless of provided color value
  • Render a transparent badge to show incompatibility
  • Update warning message to indicate opacity support
  • Take opacity into account in color contrast calculations (if possible)

thompsongl avatar Feb 19 '20 23:02 thompsongl

👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

github-actions[bot] avatar Mar 20 '21 00:03 github-actions[bot]

👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

github-actions[bot] avatar Sep 17 '21 00:09 github-actions[bot]

👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

github-actions[bot] avatar Mar 17 '22 00:03 github-actions[bot]

❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.

github-actions[bot] avatar Mar 24 '22 08:03 github-actions[bot]

👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

github-actions[bot] avatar Sep 20 '22 16:09 github-actions[bot]

👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

github-actions[bot] avatar Mar 20 '23 00:03 github-actions[bot]