Skip to content
Merged
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
Prev Previous commit
Next Next commit
Revert "added basic styles for the text inputs"
This reverts commit 3d393af.
  • Loading branch information
MaggieCabrera committed Sep 3, 2025
commit 1a1a7784b45dfd234c3d973f0e27cdf88452b2ce
10 changes: 0 additions & 10 deletions lib/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,16 +395,6 @@
"width": "0"
}
},
"textInput": {
"border": {
"width": "1px",
"style": "solid",
"color": "#949494"
},
"typography": {
"fontFamily": "inherit"
}
},
"link": {
"typography": {
"textDecoration": "underline"
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/form-input/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
&[type="week"] {
min-height: 2em;
line-height: 2;
border: 1px solid;
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/post-comments-form/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Allow these default styles to be overridden by global styles.
:where(.wp-block-post-comments-form textarea),
:where(.wp-block-post-comments-form input:not([type="submit"])) {
border: 1px solid $gray-600;
font-size: 1em;
font-family: inherit;
}
Expand Down
2 changes: 2 additions & 0 deletions packages/block-library/src/search/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ $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;
Expand All @@ -93,6 +94,7 @@ $button-spacing-y: math.div($grid-unit-15, 2); // 6px
margin-left: 0;
margin-right: 0;
min-width: 3rem;
border: 1px solid $gray-600;
// !important used to forcibly prevent undesired application of
// text-decoration styles on the input field.
text-decoration: unset !important;
Expand Down