]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Set cursor pointer on input search cancel button (#41639)
authorMark Otto <markd.otto@gmail.com>
Wed, 20 Aug 2025 18:13:33 +0000 (11:13 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Aug 2025 18:13:33 +0000 (11:13 -0700)
* Set cursor pointer on input search cancel button

* Update _reboot.scss

scss/_reboot.scss

index 5e1665c35887dec3121644d090879445b5826fe2..524645fb02fc05261916b54c0baaa5bc4a1f8fb8 100644 (file)
@@ -534,6 +534,12 @@ legend {
 [type="search"] {
   -webkit-appearance: textfield; // 1
   outline-offset: -2px; // 2
+
+  // 3. Better affordance and consistent appearance for search cancel button
+  &::-webkit-search-cancel-button {
+    cursor: pointer;
+    filter: grayscale(1);
+  }
 }
 
 // 1. A few input types should stay LTR