Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: Release 1.4.3
-
Fix Version/s: None
-
Component/s: Tag Library
-
Labels:None
Description
The <stripes:button> custom tag generates <input type="button">. I believe it should actually generate <button> elements.
<button> elements are easier to style (older browsers don't support selectors like input[type="submit"]).
<button> supports three types: button - which is like an <input type="button">, submit - which is like an <input type="submit"> and reset - which is like an <input type="reset">.
We use <button type="submit"> in preference to <input type="submit"> because it is easier to style buttons. This means that we can't use <stripes:submit> or <stripes:button>, which isn't a massive problem, but it would be nice to be able to use <stripes:button type="submit"> and have that generate a <button type="submit">, e.g.
<stripes:button type="submit">Ok</stripes:button>
would generate:
<button type="submit">Ok</button>
I know it's not ideal, but you can do <s:button class="button" ... /> and apply styles to input.button.