1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

[CL-759] Remove browser style overrides for checkbox (#15552)

This commit is contained in:
Vicki League
2025-07-10 09:14:46 -04:00
committed by GitHub
parent 1f60bcdcc0
commit 8c3c5ab861
2 changed files with 5 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ a:not(popup-page a, popup-tab-navigation a) {
} }
} }
input:not(bit-form-field input, bit-search input), input:not(bit-form-field input, bit-search input, input[bitcheckbox]),
select:not(bit-form-field select), select:not(bit-form-field select),
textarea:not(bit-form-field textarea) { textarea:not(bit-form-field textarea) {
@include themify($themes) { @include themify($themes) {
@@ -109,7 +109,7 @@ textarea:not(bit-form-field textarea) {
} }
} }
input, input:not(input[bitcheckbox]),
select, select,
textarea, textarea,
button:not(bit-chip-select button) { button:not(bit-chip-select button) {

View File

@@ -15,6 +15,7 @@ export class CheckboxComponent implements BitFormControlAbstraction {
protected inputClasses = [ protected inputClasses = [
"tw-appearance-none", "tw-appearance-none",
"tw-outline-none", "tw-outline-none",
"tw-box-border",
"tw-relative", "tw-relative",
"tw-transition", "tw-transition",
"tw-cursor-pointer", "tw-cursor-pointer",
@@ -37,6 +38,7 @@ export class CheckboxComponent implements BitFormControlAbstraction {
"before:tw-border", "before:tw-border",
"before:tw-border-solid", "before:tw-border-solid",
"before:tw-border-secondary-500", "before:tw-border-secondary-500",
"before:tw-box-border",
"after:tw-content-['']", "after:tw-content-['']",
"after:tw-block", "after:tw-block",
@@ -44,6 +46,7 @@ export class CheckboxComponent implements BitFormControlAbstraction {
"after:tw-inset-0", "after:tw-inset-0",
"after:tw-h-[1.12rem]", "after:tw-h-[1.12rem]",
"after:tw-w-[1.12rem]", "after:tw-w-[1.12rem]",
"after:tw-box-border",
"hover:before:tw-border-2", "hover:before:tw-border-2",
"[&>label]:before:tw-border-2", "[&>label]:before:tw-border-2",