@team-monolith/cds 1.115.3 → 1.115.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -175,9 +175,8 @@ const CheckboxContainer = styled.span(({ theme, spacer, disabled, hitAreaSize })
|
|
|
175
175
|
&::before {
|
|
176
176
|
content: "";
|
|
177
177
|
position: absolute;
|
|
178
|
-
top:
|
|
179
|
-
left:
|
|
180
|
-
transform: translate(-50%, -50%);
|
|
178
|
+
top: ${(DEFAULT_CHECKBOX_SIZE - hitAreaSize) / 2}px;
|
|
179
|
+
left: ${(DEFAULT_CHECKBOX_SIZE - hitAreaSize) / 2}px;
|
|
181
180
|
width: ${hitAreaSize}px;
|
|
182
181
|
height: ${hitAreaSize}px;
|
|
183
182
|
border-radius: 50%;
|
|
@@ -197,9 +196,8 @@ const CheckboxContainer = styled.span(({ theme, spacer, disabled, hitAreaSize })
|
|
|
197
196
|
const StyledInput = styled.input(({ size }) => css `
|
|
198
197
|
cursor: inherit;
|
|
199
198
|
position: absolute;
|
|
200
|
-
top:
|
|
201
|
-
left:
|
|
202
|
-
transform: translate(-50%, -50%);
|
|
199
|
+
top: ${(DEFAULT_CHECKBOX_SIZE - size) / 2}px;
|
|
200
|
+
left: ${(DEFAULT_CHECKBOX_SIZE - size) / 2}px;
|
|
203
201
|
opacity: 0;
|
|
204
202
|
width: ${size}px;
|
|
205
203
|
height: ${size}px;
|