Fixed disabled text input styling
authorAlexander Ebert <ebert@woltlab.com>
Tue, 25 Oct 2016 10:32:20 +0000 (12:32 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 25 Oct 2016 14:18:41 +0000 (16:18 +0200)
wcfsetup/install/files/acp/templates/styleAdd.tpl
wcfsetup/install/files/style/layout/form.scss

index a49fd54051ce24a7424aaed626649b4cd41fd19e..cb32ec9a60251f0abc33c91e4e6a2a99205e0199 100644 (file)
                                                                        
                                                                        <dl data-region="wcfInput">
                                                                                <dt><label for="spInput">Lorem Ipsum</label></dt>
-                                                                               <dd><input type="text" id="spInput" class="long" value="Consetetur sadipscing elitr"></dd>
+                                                                               <dd><input type="text" id="spInput" class="long" placeholder="Placeholder" value="Consetetur sadipscing elitr"></dd>
                                                                        </dl>
                                                                        <dl data-region="wcfInputDisabled">
                                                                                <dt><label for="spInputDisabled">Dolor Sit Amet</label></dt>
-                                                                               <dd><input type="text" id="spInputDisabled" class="long" placeholder="Disabled" disabled></dd>
+                                                                               <dd><input type="text" id="spInputDisabled" class="long" value="Disabled" disabled></dd>
                                                                        </dl>
                                                                        
                                                                        <div class="spHeadline">Button</div>
index 1201fcaf8671a1057ed830d2a6339c4f4eaa95af..64a0d0b09e8538736ac2c261db8352260e5131e8 100644 (file)
@@ -43,6 +43,13 @@ input[type="url"] {
                        color: $wcfInputPlaceholderActive;
                }
        }
+       
+       &[disabled],
+       &[readonly] {
+               background-color: $wcfInputDisabledBackground !important;
+               border-color: $wcfInputDisabledBorder !important;
+               color: $wcfInputDisabledText !important;
+       }
 }
 
 input[type="search"],