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.5k stars 260 forks source link

[icons] status-error and status-completed icons v4 are completely different to v5 ones #6015

Closed blikblum closed 1 year ago

blikblum commented 1 year ago

Bug Description

The v4 version of status-error and status-completed icons are completely different from v5 ones. The v4 version does not resemble at all the expected visual

Expected Behavior

v4 and v5 icons should be similar / reflect the concept expected by the name

Steps to Reproduce

  1. compare status-completed v4 https://github.com/SAP/ui5-webcomponents/blob/main/packages/icons/src/v4/SAP-icons.json#L1967 with v5 https://github.com/SAP/ui5-webcomponents/blob/main/packages/icons/src/v5/SAP-icons.json#L1968

The v5 one resembles a success icon, the v4 a unchecked checkbox

Isolated Example

If possible, please provide an isolated example by forking CodeSandbox.

Context

Log Output / Stack Trace / Screenshots

{...}

Priority

The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria:

Note: The priority might be re-evaluated by the issue processor.

Stakeholder Info (if applicable)

unazko commented 1 year ago

Hello @SAP/ui5-webcomponents-topic-p,

The reported incident is about the difference between the Fiori theme status-error and status-completed icons and the same icons in Horizon theme.

The situation is exactly the same in the openui5 project for the same icons between the two themes.

Best Regards, Boyan

dobrinyonkov commented 1 year ago

Hello @SAP/ui5-webcomponents-topic-core, could you please take over this issue?

nnaydenow commented 1 year ago

Hi @blikblum,

Seems to be intentional change since they appear as you reported them in OpenUI5 icon explorer.

blikblum commented 1 year ago

The issue occurs with the default sap_fiori_3 theme which loads v4 icon data. The icon explorer uses sap_horizon theme which loads the v5 icon data.

The issue is with v4 icon data

Here is the status-error icon source code:

import { isThemeFamily } from "@ui5/webcomponents-base/dist/config/Theme.js";
import {pathData as pathDataV5, ltr, accData} from "./v5/status-error.js";
import {pathData as pathDataV4} from "./v4/status-error.js";

const pathData = isThemeFamily("sap_horizon") ? pathDataV5 : pathDataV4;

export default "status-error";
export { pathData, ltr, accData };
nnaydenow commented 1 year ago

Hi @blikblum,

In version 1.11.0 icons looks to be as expected.

sap_horizon

Icon Explorer: Screenshot 2023-03-31 at 9 42 24 UI5 web components: Screenshot 2023-03-31 at 9 45 53

sap_fiori_3

Icon Explorer Screenshot 2023-03-31 at 9 42 43 UI5 web components: Screenshot 2023-03-31 at 9 45 49

Possible solution

We are using the SAP-icons fonts that SAPUI5 / OpenUI5 and generate SVG's on top of it. There are some icons which have similar design in both version v4 and v5 which could replace the current one. For example you can check following icons: error, alert, sys-enter-2, information for example result in: sap_fiori_3 image sap_horizon image

blikblum commented 1 year ago

Many thanks for the explanation.

I will be using horizon theme for now

The sap_fiori_3 status-error, status-completed does not resembles (at least for me) to error or completed status. Also in-progress and critical are equal. So i think that could be some kind of error.

Knowing this is the intended design, everything is fine