Skip to content

Commit 340b142

Browse files
committed
A11y: Use pointer cursor on webkit field cancellation buttons.
Webkit-based browsers add a cancel button to search inputs. This input uses the default cursor standard to buttons and inputs, but the WordPress admin applies the `pointer` cursor to buttons and inputs. Apply the WordPress standard pointer to this pseudoelement for UI consistency. Props sumitsingh, manhphucofficial, joedolson, sabernhardt, dhruvang21. Fixes #64382. git-svn-id: https://develop.svn.wordpress.org/trunk@61514 602fd350-edb4-49c9-b593-d223f7449a82
1 parent ea33087 commit 340b142

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/wp-admin/css/forms.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ input[type="search"]::-webkit-search-decoration {
209209
display: none;
210210
}
211211

212+
input[type="search"]::-webkit-search-cancel-button {
213+
cursor: pointer;
214+
}
215+
212216
.wp-admin input[type="file"] {
213217
padding: 3px 0;
214218
cursor: pointer;

0 commit comments

Comments
 (0)