1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

[CL-825] Provide dimensions to checkbox to fix ios rendering bug (#16109)

* absolutely position checkbox to fix ios rendering bug

* remove absolute positioning. Dimensions fix it
This commit is contained in:
Bryan Cunningham
2025-08-22 10:01:23 -04:00
committed by GitHub
parent 92c9aa7b3e
commit eb84faaf99
2 changed files with 4 additions and 1 deletions

View File

@@ -21,6 +21,9 @@ export class CheckboxComponent implements BitFormControlAbstraction {
"tw-align-sub",
"tw-flex-none", // Flexbox fix for bit-form-control
"!tw-p-1",
// Give checkbox explicit height and width to fix iOS rendering bug
"tw-h-[calc(1.12rem_+_theme(spacing.2))]",
"tw-w-[calc(1.12rem_+_theme(spacing.2))]",
"after:tw-inset-1",
// negative margin to negate the positioning added by the padding
"!-tw-mt-1",