checkbox: fixed min-height on all styles (#6647)

This commit is contained in:
FloVanGH 2024-10-24 18:59:18 +02:00 committed by GitHub
parent b874adbc1c
commit de67a6d201
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ export component CheckBox {
private property <color> text-color: CosmicPalette.foreground;
min-height: max(32px, layout.min-height);
min-height: max(16px, layout.min-height);
accessible-checkable: true;
accessible-label: root.text;
accessible-checked <=> root.checked;

View file

@ -15,7 +15,7 @@ export component CheckBox {
private property <brush> background: checked && root.enabled ? CupertinoPalette.accent-background : CupertinoPalette.control-background;
private property <brush> icon-color: CupertinoPalette.accent-foreground;
min-height: max(16px, i-layout.min-height);
min-height: max(14px, i-layout.min-height);
accessible-checkable: true;
accessible-label: root.text;
accessible-checked <=> root.checked;

View file

@ -14,7 +14,7 @@ export component CheckBox {
private property <color> text-color: FluentPalette.foreground;
min-height: max(32px, layout.min-height);
min-height: max(18px, layout.min-height);
accessible-checkable: true;
accessible-label: root.text;
accessible-checked <=> root.checked;

View file

@ -12,7 +12,7 @@ export component CheckBox {
callback toggled;
min-height: max(32px, i-layout.min-height);
min-height: max(18px, i-layout.min-height);
vertical-stretch: 0;
accessible-label <=> i-text.text;
accessible-checkable: true;