Skip to content

Commit 7c6fe16

Browse files
Fix alignment in checked radio buttons/checkboxes
Using different responsive sizes for the border and the checked indicator led to some rounding problems. This change uses a relative size instead, which produces consistent results. Refs #388
1 parent 23a1808 commit 7c6fe16

35 files changed

Lines changed: 73 additions & 72 deletions

File tree

assets/style.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -709,19 +709,20 @@ html-editor {
709709
[type='radio'] {
710710
appearance: none;
711711
flex-shrink: 0;
712-
display: inline-grid;
712+
display: flex;
713+
justify-content: center;
714+
align-items: center;
713715
color: currentcolor;
714716
background-color: var(--color-background);
715717
border: var(--width-divider) solid currentcolor;
716718
cursor: pointer;
717719
inline-size: var(--space-m);
718720
block-size: var(--space-m);
719-
place-content: center;
720721

721722
&::before {
722723
content: '';
723-
inline-size: var(--space-xs);
724-
block-size: var(--space-xs);
724+
inline-size: calc(100% - (var(--width-divider) * 2));
725+
block-size: calc(100% - (var(--width-divider) * 2));
725726
background-color: transparent;
726727
}
727728

Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)