Skip to content

Conversation

@AntonioVentilii
Copy link
Contributor

@AntonioVentilii AntonioVentilii commented Dec 5, 2024

Motivation

It is useful to "force" the Checkbox component to have the CSS property box-sizing: content-box;. That is because, if, for instance, it is used in a context where the property is set as border-box, the results are not so pretty:

Screenshot 2024-12-05 at 19 38 11

While, after this change, we have the intended results in all type of contexts:

Screenshot 2024-12-05 at 19 38 59

Side note

In OISY we have this exact example, but instead of changing it only for OISY, I would imagine that this is the intention of the component, so I changed it at the origin.

Screenshot 2024-12-05 at 19 45 23

should be

Screenshot 2024-12-05 at 19 46 15

Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx

@AntonioVentilii AntonioVentilii merged commit f6275d1 into main Dec 6, 2024
8 checks passed
@AntonioVentilii AntonioVentilii deleted the style/force-content-box-for-Checkbox branch December 6, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants