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

Checkbox - “Hover” and “Down” state only on half of checkbox

Open blaesius opened this issue 3 years ago • 2 comments

Bug Description

“Hover” and “Down” state only on half of checkbox

Affected Component

No response

Expected Behaviour

While interacting with checkbox, the “hover” and “down” state only appears when cursor is on box, not on text. If user can click on text to select and unselect the checkbox, the “hover” and “down” state should be shown as well (box + text should act as one control).

Isolated Example

https://sap.github.io/ui5-webcomponents/playground/components/CheckBox/

Steps to Reproduce

1. 2. 3. ...

Log Output, Stack Trace or Screenshots

image

Priority

Medium

UI5 Web Components Version

1.11.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Declaration

  • [X] I’m not disclosing any internal or sensitive information.

blaesius avatar Mar 23 '23 07:03 blaesius

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

The correct styles for hover and down state on the Checkbox do not get applied if the user clicks on the text, only if the box is being clicked. You can reproduce the issue on the Checkbox's playground page - observe that if you hover/hold down the mouse on the box, the correct styles are applied (for example the white background of the box on hover), but if you try to do the same when clicking/hovering over the text, the styles remain unchanged.

Could you please take a look at this issue?

Best regards, Siyana

s-todorova avatar Mar 23 '23 15:03 s-todorova

Hello @blaesius,

Thanks you for reporting!

We already have a backlog item and we are working on this issue.

Kind regards, Yana

yanaminkova avatar Apr 20 '23 05:04 yanaminkova