Skip to content

Commit

Permalink
Search Block: Apply font-related style inheritance to input field (Wo…
Browse files Browse the repository at this point in the history
…rdPress#60321)

* Search Block: Apply font-related style inheritance to input field

* Add missin styles

Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>

---------

Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>

Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
Co-authored-by: gigitux <gigitux@git.wordpress.org>
  • Loading branch information
5 people authored and cbravobernal committed Apr 9, 2024
1 parent 0b89cc6 commit 0af5716
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/block-library/src/search/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,17 @@ $button-spacing-y: math.div($grid-unit-15, 2); // 6px
}
}

// We are lowering the specificity so that the input element can override the rule for the input element inside the search block.
:where(.wp-block-search__input) {
font-family: inherit;
font-weight: inherit;
font-size: inherit;
line-height: inherit;
letter-spacing: inherit;
text-transform: inherit;
font-style: inherit;
}

// We are lowering the specificity so that the button element can override the rule for the button inside the search block.
:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
padding: $grid-unit-05;
Expand Down

0 comments on commit 0af5716

Please sign in to comment.