Skip to content

Commit

Permalink
Search: Unhide the label, update placeholder (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle authored Apr 14, 2023
1 parent 482d0c7 commit 01251d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
4 changes: 2 additions & 2 deletions mu-plugins/blocks/global-header-footer/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*/

$search_args = array(
'label' => _x( 'Search in WordPress', 'button label', 'wporg' ),
'placeholder' => _x( 'Search WP.org...', 'input field placeholder', 'wporg' ),
'label' => _x( 'Search in WordPress.org', 'button label', 'wporg' ),
'placeholder' => _x( 'Type to search…', 'input field placeholder', 'wporg' ),
'buttonPosition' => 'button-inside',
'buttonUseIcon' => true,
'formAction' => 'https://wordpress.org/search/do-search.php',
Expand Down
15 changes: 0 additions & 15 deletions mu-plugins/blocks/global-header-footer/postcss/header/search.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,6 @@
margin-bottom: calc(var(--wp--custom--form--padding) / 2);
font-size: var(--wp--custom--form--typography--font-size);
color: var(--wp--custom--form--color--label);

@media (--tablet) {

/* See @mixin hide-accessibly in wporg-news-2021 */
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
word-wrap: normal !important;
}
}

& .wp-block-search__inside-wrapper {
Expand Down

0 comments on commit 01251d5

Please sign in to comment.