Skip to content

Commit e0561b2

Browse files
aferciagziolo
authored andcommitted
Use a specific CSS class for the CSS reset mixin. (#16856)
* Use a specific CSS class for the CSS reset mixin. * List selectors individually instead. * Add selectors for the missing UI parts.
1 parent 37c63b8 commit e0561b2

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

assets/stylesheets/_mixins.scss

+2-5
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,6 @@
394394
box-sizing: inherit;
395395
}
396396

397-
select {
398-
font-size: $default-font-size;
399-
color: $dark-gray-500;
400-
}
401-
402397
.input-control, // Upstream name is `.regular-text`.
403398
input[type="text"],
404399
input[type="search"],
@@ -440,6 +435,8 @@
440435

441436
select {
442437
padding: 2px;
438+
font-size: $default-font-size;
439+
color: $dark-gray-500;
443440

444441
&:focus {
445442
border-color: $blue-medium-600;

packages/edit-post/src/style.scss

+7-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,13 @@ body.block-editor-page {
6161
@include wp-admin-reset( ".block-editor" );
6262
}
6363

64-
.block-editor,
65-
// The modals are shown outside the .block-editor wrapper, they need these styles
64+
// Target the editor UI excluding the metaboxes and custom fields areas.
65+
.edit-post-header,
66+
.edit-post-visual-editor,
67+
.edit-post-text-editor,
68+
.edit-post-sidebar,
69+
.editor-post-publish-panel,
70+
.components-popover,
6671
.components-modal__frame {
6772
@include reset;
6873
}

packages/editor/src/components/editor-notices/style.scss

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
.components-editor-notices__dismissible,
2323
.components-editor-notices__pinned {
2424
.components-notice {
25+
box-sizing: border-box;
2526
margin: 0 0 5px;
2627
padding: 6px 12px;
2728
min-height: $panel-header-height;

0 commit comments

Comments
 (0)