Skip to content

Commit ddadc0b

Browse files
committed
Add a reminder for <button> without a type attribute
1 parent abf509b commit ddadc0b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

com.woltlab.wcf/templates/headIncludeJavaScript.tpl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,18 @@ window.addEventListener('pageshow', function(event) {
117117
<script data-relocate="true">
118118
require(["WoltLabSuite/Core/Devtools/Style/LiveReload"], (LiveReload) => LiveReload.watch());
119119
</script>
120+
<style type="text/css">
121+
button:not([type]) {
122+
border: 5px solid red !important;
123+
124+
&::before {
125+
background-color: #fff !important;
126+
color: red !important;
127+
content: "BUTTON_WITHOUT_TYPE";
128+
font-weight: 600;
129+
}
130+
}
131+
</style>
120132
{/if}
121133

122134
<script data-relocate="true">

0 commit comments

Comments
 (0)