Skip to content

Commit

Permalink
CSS: fix font size for labels in table cells
Browse files Browse the repository at this point in the history
HTML inputs should be associated with a label, for screen readers.

A lot of our forms are in tables, with one column containing the label
and another the corresponding input.

Adding the <label> element in this scenario causes the display to
change the font size, due to the default defined in ace.css as 14px,
but in table cells it is 13px (derived from body).

This overrides the font-size for th/td labels, so the labels visual
aspect stays the same after adding <labels> elements.

Follow-up on d27ea37.

Fixes #27958
  • Loading branch information
dregad committed Feb 7, 2021
1 parent 066f4bc commit 3081131
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions css/ace-mantis.css
Expand Up @@ -344,6 +344,7 @@ textarea.input-xs, select.input-xs[multiple] {
th > label,
td > label {
font-weight: bold;
font-size: 13px;
}

.scrollable-menu {
Expand Down

0 comments on commit 3081131

Please sign in to comment.