From 35573db810fbcbb9d7aefde090fbad3dbd332271 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 19 May 2013 22:06:10 -0700 Subject: [PATCH] Fixes #7611: fix optgroup formatting for Firefox --- docs/assets/css/bootstrap.css | 6 ++++++ less/forms.less | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index d9efc0f82a..f506191350 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -1317,6 +1317,12 @@ select[size] { height: auto; } +select optgroup { + font-family: inherit; + font-size: inherit; + font-style: inherit; +} + input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { diff --git a/less/forms.less b/less/forms.less index 303c3b6179..c61fd50fa0 100644 --- a/less/forms.less +++ b/less/forms.less @@ -124,6 +124,13 @@ select[size] { height: auto; } +// Fix optgroup Firefox bug per https://github.com/twitter/bootstrap/issues/7611 +select optgroup { + font-size: inherit; + font-style: inherit; + font-family: inherit; +} + // Focus for select, file, radio, and checkbox input[type="file"]:focus, input[type="radio"]:focus,