From a4af46ef4786aa7eef5524a2a69cbc13f326880b Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 29 Jun 2022 15:29:42 +0100 Subject: [PATCH] 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. --- app/assets/stylesheets/common.scss | 5 +++++ 1 file changed, 5 insertions(+) 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, -- 2.43.2