From: Andy Allan Date: Wed, 29 Jun 2022 14:29:42 +0000 (+0100) Subject: Bootstrap 5: Override float attribute on legends X-Git-Tag: live~1074^2~12 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/a4af46ef4786aa7eef5524a2a69cbc13f326880b Bootstrap 5: Override float attribute on legends I don't fully understand why bootstrap added this in v5, as the discussion on the issue tracker isn't clear. But we neither want nor need this. --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index d63317812..03fe7bd42 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -686,6 +686,11 @@ form { } } +/* Stop bootstrap 5 from floating legends when they don't need to be */ +legend { + float: none; +} + /* Rules for the search and direction forms */ header .search_forms,