ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[a11y][ui5-button]The hover state of ui5-button must meet 7:1 against the black background in high contrast black mode

Open Hubery-Shen opened this issue 6 years ago • 6 comments

Dear colleagues,

I am from SuccessFactors Web Experience Shanghai team.

Bug Description

The hover state of ui5-button must meet 7:1 against the black background in high contrast black mode button text and background color

The current ratio is: 6.99:1, and it should be 7:1

Hubery-Shen avatar Nov 04 '20 07:11 Hubery-Shen

Hi @Hubery-Shen

Is this issue empty by mistake?

fifoosid avatar Nov 04 '20 08:11 fifoosid

Hi @Hubery-Shen

Is this issue empty by mistake?

No, I am editing this issue.

Hubery-Shen avatar Nov 04 '20 08:11 Hubery-Shen

Hello @SAP/ui5-webcomponents-topic-b we have this contrast ratio issue for the ui5-button on hover in HCB theme between the white border(#ffffff) and the hover background (#7a5100).

The same colors, that are defined by the designers, are used in the sap.m.Button in HCB https://openui5nightly.hana.ondemand.com/entity/sap.m.Button/sample/sap.m.sample.Button

However, the author's tool shows 6.99 : 1 contrast ratio (just below 7:1), but It's possible that we use different tools. Could you confirm and prove that the border and hover colors are fine?

ilhan007 avatar Nov 05 '20 06:11 ilhan007

Hi @ilhan007

Screen Shot 2020-11-05 at 5 49 09 PM

We use Colour Contrast Analyser tool to test this. I can confirm and prove that the border and hover colors are fine

Hubery-Shen avatar Nov 05 '20 09:11 Hubery-Shen

@Hubery-Shen are you comparing the hover background and the border color? Should not you compare the border color (white) and the black background? Then the ration will meet the 7:1 ratio for sure.

ilhan007 avatar Nov 06 '20 08:11 ilhan007

closing due to inactivity

ilhan007 avatar Dec 03 '20 11:12 ilhan007