Why BS dont implement style `<input type="number">`?
Prerequisites
- [X] I have searched for duplicate or closed feature requests
- [X] I have read the contributing guidelines
Proposal
Some <input> form elements will be styled, only type="number" is missing.
Motivation and context
The default style is ugly:
Thanks for reporting this issue @Bizarrus
What would you like to change in the number inputs? The arrows come from the default browser rendering, and if they are using the correct color-scheme value, they should match the light/dark mode rather well:
Radioboxes, Checkboxes and other already styled for Bootstrap (see https://getbootstrap.com/docs/5.3/forms/checks-radios/#checks), iwould like to see a separate procedure for number boxes as a core feature of Bootstrap, like these:
<input class="input-number" type="number" value="">
With style-behaviors like:
or
Bootstrap doesn't style the <input type="number"> by default because styling numerical inputs can vary greatly depending on the platform and browser. Customizing these inputs could potentially interfere with native functionality or cause inconsistencies across different devices and browsers. As a result, Bootstrap tends to focus on more standardized elements and leaves these types of inputs unstyled to maintain their default behavior. However, you can still apply your own custom styling to these inputs using CSS if needed.
from chatGpt