Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add no-spinners utility to remove input spinners #41355

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions site/content/docs/5.3/utilities/no-spinners.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### No Spinners

The `.no-spinners` utility removes the spinner arrows from `<input type="number">` and similar elements across supported browsers (WebKit and Firefox).

```html
<input type="number" class="form-control no-spinners" value="42">
24 changes: 24 additions & 0 deletions tests/visual/no-spinners.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Visual Test: No Spinners Utility</title>
<link rel="stylesheet" href="/dist/css/bootstrap.css">
</head>
<body>
<div class="container py-5">
<h1>No Spinners Utility Test</h1>
<p>Inputs below should not display spinners in supported browsers.</p>

<h2>Default Number Input (with spinners)</h2>
<input type="number" class="form-control" value="42">

<h2>Number Input with .no-spinners</h2>
<input type="number" class="form-control no-spinners" value="42">

<h2>Time Input with .no-spinners</h2>
<input type="time" class="form-control no-spinners" value="13:37">
</div>
</body>
</html>
Loading