mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +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:
@@ -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",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<label
|
||||
class="tw-transition tw-items-start [&:has(input[type='checkbox'])]:tw-gap-[.25rem] [&:has(input[type='radio'])]:tw-gap-1.5 tw-select-none tw-mb-0 tw-inline-flex tw-rounded has-[:focus-visible]:tw-ring has-[:focus-visible]:tw-ring-primary-600"
|
||||
class="tw-transition tw-items-start [&:has(input[type='checkbox'])]:tw-gap-1 [&:has(input[type='radio'])]:tw-gap-1.5 tw-select-none tw-mb-0 tw-inline-flex tw-rounded has-[:focus-visible]:tw-ring has-[:focus-visible]:tw-ring-primary-600"
|
||||
[ngClass]="[formControl().disabled ? 'tw-cursor-auto' : 'tw-cursor-pointer']"
|
||||
>
|
||||
<ng-content></ng-content>
|
||||
|
||||
Reference in New Issue
Block a user