From 52bb8ff26d986f9c62b1a6772e3bc1630f403fcb Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Sun, 22 Feb 2015 18:13:27 -0800 Subject: [PATCH] add page for E040 --- E040.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 E040.md diff --git a/E040.md b/E040.md new file mode 100644 index 0000000..8b9963b --- /dev/null +++ b/E040.md @@ -0,0 +1,29 @@ +# E040 + +## `.hide` should not be used on `.modal` in Bootstrap v3. + +In Bootstrap v3, modals are hidden by default by virtue of the `.modal` class. There is no need to add `.hide` to a `.modal`, and in fact adding `.hide` will interfere with proper showing of the modal, so it should not be done. + +`.modal.hide` was previously required in old Bootstrap v2, but this is no longer the case in Bootstrap v3. The markup required for modals has changed significantly between v2 and v3, and modal examples for Bootstrap v2 should therefore not be followed when using Bootstrap v3. + +Wrong: +```html + +``` + +Right: +```html + +``` + +Also Right: +``` + + +``` \ No newline at end of file