SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.54k stars 265 forks source link

ColorConversion.js HEXtoRGB util does not work properly with some values #9895

Closed adrian-bobev closed 1 month ago

adrian-bobev commented 1 month ago

Bug Description

HEXtoRGB fails with some input values

Steps to Reproduce

  1. Open this url

  2. You can see that it fails to parse the rgb object.

For some values from 0 to 255 it works, for others - not. I did not find pattern.

UI5 Web Components Version

All tested versions

Browser

Chrome, Edge, Firefox, Safari

Declaration

IlianaB commented 1 month ago

Hello @SAP/ui5-webcomponents-topic-b could you please check why does the HEXtoRGB conversion fail with some values, as in the given sample.

Regards, Iliana